UNPKG

@tntsuperman/rjs

Version:

simple, react, fast JavaScript framework

9 lines (8 loc) 365 B
export declare class VNode<T extends ChildNode> { #private; node: T; constructor(node: T); ondestroy(fn: () => void): void; } export declare const createVElement: (tag: string, contents: (() => VNode<ChildNode>[]), attrs?: () => object, event?: object) => VNode<HTMLElement>; export declare const createVText: (text: (() => string)) => VNode<Text>;