UNPKG

799 BTypeScriptView Raw
1import { VNode, VNodeData } from "./vnode";
2export declare type VNodes = VNode[];
3export declare type VNodeChildElement = VNode | string | number | String | Number | undefined | null;
4export declare type ArrayOrElement<T> = T | T[];
5export declare type VNodeChildren = ArrayOrElement<VNodeChildElement>;
6export declare function addNS(data: any, children: Array<VNode | string> | undefined, sel: string | undefined): void;
7export declare function h(sel: string): VNode;
8export declare function h(sel: string, data: VNodeData | null): VNode;
9export declare function h(sel: string, children: VNodeChildren): VNode;
10export declare function h(sel: string, data: VNodeData | null, children: VNodeChildren): VNode;
11/**
12 * @experimental
13 */
14export declare function fragment(children: VNodeChildren): VNode;