Skip to content

Instantly share code, notes, and snippets.

Created October 14, 2020 13:48
What would you like to do?
TodoListEnvelopeApiImpl Methods
import { Association, TodoListInitArgs } from "../api";
export class TodoListEnvelopeApiImpl implements TodoListEnvelopeApi {
// ...
public async todoList__init(association: Association, initArgs: TodoListInitArgs) {
this.args.envelopeBusController.associate(association.origin, association.envelopeServerId);
public async todoList__addItem(item: string) {
return this.args.view().addItem(item);
public async todoList__getItems() {
return this.args.view().getItems();
public todoList__markAllAsCompleted() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment