UNPKG

450 BTypeScriptView Raw
1import { t } from '../common';
2declare type Node = t.INode;
3declare type TreeNode = t.ITreeNode;
4export declare const helpers: {
5 id: t.TreeIdentity;
6 isInstance(input: any): boolean;
7 props<P>(of: Node, fn?: ((props: P) => void) | undefined): P;
8 children<T extends t.ITreeNode<Record<string, unknown>>>(of: T, fn?: ((children: T[]) => void) | undefined): T[];
9 ensureNamespace(root: TreeNode, namespace: string): void;
10};
11export {};
12
\No newline at end of file