UNPKG

@discoveryjs/discovery

Version:

Frontend framework for rapid data (JSON) analysis, shareable serverless reports and dashboards

15 lines (14 loc) 863 B
export type CreateElementAttrs<TagName extends keyof HTMLElementTagNameMap> = { [key in keyof HTMLElementEventMap as `on${key}`]?: (this: HTMLElementTagNameMap[TagName], evt: HTMLElementEventMap[key]) => void; } & { [key: string]: any | undefined; }; export declare function createElement<TagName extends keyof HTMLElementTagNameMap>(tag: TagName, attrs?: CreateElementAttrs<TagName> | string | null, children?: (Node | string)[] | string): HTMLElementTagNameMap[TagName]; export declare function createText(text: any): Text; export declare function isDocumentFragment(value: Node): value is DocumentFragment; export declare function createFragment(...children: (Node | string)[]): DocumentFragment; export declare const passiveSupported: boolean; export declare const passiveCaptureOptions: boolean | Readonly<{ passive: true; capture: true; }>;