UNPKG

@visactor/openinula-vtable

Version:

The openinula version of VTable

10 lines (9 loc) 700 B
import type { InulaElement, InulaPortal } from 'openinula'; type InulaNode = InulaElement | string | number | Iterable<InulaNode> | InulaPortal | boolean | null | undefined; export declare const uid: (prefix?: string) => string; export declare const getDisplayName: (Comp: any) => any; export declare const typeOfComponent: (component: any, customTypeKey?: string) => string; export declare const toArray: <T = InulaNode, TC = InulaNode>(children: T) => TC[]; export declare const findAllByType: <T extends InulaNode, TC = unknown>(children: InulaNode, type: TC | TC[]) => T[]; export declare const findChildByType: <T extends InulaNode, TC = unknown>(children: InulaNode, type: TC) => T; export {};