UNPKG

581 BTypeScriptView Raw
1import { VNode, VNodeData } from './vnode';
2export declare type VNodes = Array<VNode>;
3export declare type VNodeChildElement = VNode | string | number | undefined | null;
4export declare type ArrayOrElement<T> = T | T[];
5export declare type VNodeChildren = ArrayOrElement<VNodeChildElement>;
6export declare function h(sel: string): VNode;
7export declare function h(sel: string, data: VNodeData): VNode;
8export declare function h(sel: string, children: VNodeChildren): VNode;
9export declare function h(sel: string, data: VNodeData, children: VNodeChildren): VNode;
10export default h;