Home > @jview/utils > TreeNode
TreeNode type
树节点基本类型
Signature:
typescript
export type TreeNode<K extends string, C extends string> = Record<string, any> & {
[P in K]: string | number;
} & {
[P in C]?: TreeNode<K, C>[];
};
export type TreeNode<K extends string, C extends string> = Record<string, any> & {
[P in K]: string | number;
} & {
[P in C]?: TreeNode<K, C>[];
};
References: TreeNode