Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Last active October 14, 2020 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/237db920a7100e42465be6cf17fbcfb2 to your computer and use it in GitHub Desktop.
Save ljmotta/237db920a7100e42465be6cf17fbcfb2 to your computer and use it in GitHub Desktop.
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