Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Last active October 14, 2020 13:45
Embed
What would you like to do?
TodoListEnvelope init
import { EnvelopeBus } from "@kogito-tooling/envelope-bus/dist/api";
import { Envelope } from "@kogito-tooling/envelope";
import { TodoListEnvelopeContext } from "./TodoListEnvelopeContext";
import { TodoListEnvelopeApiImpl } from "./TodoListEnvelopeApiImpl";
import { TodoListChannelApi, TodoListEnvelopeApi } from "../api";
export function init(args: { container: HTMLElement; bus: EnvelopeBus }) {
const envelope = new Envelope<
TodoListEnvelopeApi,
TodoListChannelApi,
TodoListEnvelopeViewApi,
TodoListEnvelopeContext
>(args.bus);
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment