UNPKG

770 BTypeScriptView Raw
1import { VNode, VNodeData } from "./vnode.js";
2export type VNodes = VNode[];
3export type VNodeChildElement = VNode | string | number | String | Number | undefined | null;
4export type ArrayOrElement<T> = T | T[];
5export 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;