jsketcher/modules/plugable/index.ts
2020-06-29 19:33:11 -07:00

14 lines
No EOL
236 B
TypeScript

export interface Plugin<InContext, OutContext> {
id: string;
dependencies: string[];
activate(ctx: InContext & OutContext): () => void | void;
}
export function activatePlugins(plugins: Plugin<any, any>[], context: any) {
}