1 | import { Hooks } from './hooks';
|
2 | export declare type Key = string | number;
|
3 | export interface VNode {
|
4 | sel: string | undefined;
|
5 | data: VNodeData | undefined;
|
6 | children: Array<VNode | string> | undefined;
|
7 | elm: Node | undefined;
|
8 | text: string | undefined;
|
9 | key: Key;
|
10 | }
|
11 | export interface VNodeData {
|
12 | props?: any;
|
13 | attrs?: any;
|
14 | class?: any;
|
15 | style?: any;
|
16 | dataset?: any;
|
17 | on?: any;
|
18 | hero?: any;
|
19 | attachData?: any;
|
20 | hook?: Hooks;
|
21 | key?: Key;
|
22 | ns?: string;
|
23 | fn?: () => VNode;
|
24 | args?: Array<any>;
|
25 | [key: string]: any;
|
26 | }
|
27 | export declare function vnode(sel: string | undefined, data: any | undefined, children: Array<VNode | string> | undefined, text: string | undefined, elm: Element | Text | undefined): VNode;
|
28 | export default vnode;
|