django-vue3-admin-web/node_modules/snabbdom/build/h.d.ts
2025-10-20 21:21:14 +08:00

15 lines
770 B
TypeScript

import { VNode, VNodeData } from "./vnode.js";
export type VNodes = VNode[];
export type VNodeChildElement = VNode | string | number | String | Number | undefined | null;
export type ArrayOrElement<T> = T | T[];
export type VNodeChildren = ArrayOrElement<VNodeChildElement>;
export declare function addNS(data: any, children: Array<VNode | string> | undefined, sel: string | undefined): void;
export declare function h(sel: string): VNode;
export declare function h(sel: string, data: VNodeData | null): VNode;
export declare function h(sel: string, children: VNodeChildren): VNode;
export declare function h(sel: string, data: VNodeData | null, children: VNodeChildren): VNode;
/**
* @experimental
*/
export declare function fragment(children: VNodeChildren): VNode;