UNPKG

@dapplets/dapplet-extension

Version:
23 lines (22 loc) 400 B
export type Exports = { [propName: string]: any; }; export type WidgetConfig<T> = { [key: string]: T; } & { id?: string; initial?: string; }; export interface IWidget<T> { mount(): void; unmount(): void; el: HTMLElement; state: T; insPointName: string; } export type Context = { parsed: any; eventHandlers: { [event: string]: Function[]; }; };