UNPKG

@protorians/widgets

Version:

Create your web user interfaces with widgets

9 lines (8 loc) 363 B
import type { ICallable, IWidgetNode } from "./widget.js"; import type { IAttributes } from "./attributes.js"; export interface IWidgetCapability<E extends HTMLElement, A extends IAttributes, Payload> { readonly name: string; readonly callable: ICallable<E, A, Payload>; on(widget: IWidgetNode<E, A>): this; make<T>(payload: Payload): T | void; }