fractal-core
Version:
A minimalist and well crafted app, content or component is our conviction
40 lines (39 loc) • 1.3 kB
TypeScript
import { CSS } from '../../core';
import { Hooks } from 'snabbdom/hooks';
import { AttachData } from 'snabbdom/helpers/attachto';
import { On } from './eventListeners';
import { OnGlobal } from './globalListeners';
import { SizeBinding } from './sizeBinding';
import { Attrs } from 'snabbdom/modules/attributes';
import { Classes } from 'snabbdom/modules/class';
import { Props } from 'snabbdom/modules/props';
import { Dataset } from 'snabbdom/modules/dataset';
import { Hero } from 'snabbdom/modules/hero';
export declare type Key = string | number;
export interface VNode {
sel: string | undefined;
data: VNodeData | undefined;
children: Array<VNode | string> | undefined;
elm: Node | undefined;
text: string | undefined;
key: Key;
}
export interface VNodeData {
props?: Props;
attrs?: Attrs;
class?: Classes;
style?: CSS;
dataset?: Dataset;
on?: On;
global?: OnGlobal;
size?: SizeBinding;
hero?: Hero;
attachData?: AttachData;
hook?: Hooks;
key?: Key;
ns?: string;
fn?: () => VNode;
args?: Array<any>;
}
export declare function vnode(sel: string | undefined, data: any | undefined, children: Array<VNode | string> | undefined, text: string | undefined, elm: Element | Text | undefined): VNode;
export default vnode;