@dapplets/dapplet-extension
Version:
The Bridge to the Augmented Web.
23 lines (22 loc) • 400 B
TypeScript
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[];
};
};