h.d.ts 770 B

1234567891011121314
  1. import { VNode, VNodeData } from "./vnode.js";
  2. export type VNodes = VNode[];
  3. export type VNodeChildElement = VNode | string | number | String | Number | undefined | null;
  4. export type ArrayOrElement<T> = T | T[];
  5. export type VNodeChildren = ArrayOrElement<VNodeChildElement>;
  6. export declare function addNS(data: any, children: Array<VNode | string> | undefined, sel: string | undefined): void;
  7. export declare function h(sel: string): VNode;
  8. export declare function h(sel: string, data: VNodeData | null): VNode;
  9. export declare function h(sel: string, children: VNodeChildren): VNode;
  10. export declare function h(sel: string, data: VNodeData | null, children: VNodeChildren): VNode;
  11. /**
  12. * @experimental
  13. */
  14. export declare function fragment(children: VNodeChildren): VNode;