Skip to content
本文内容

Tree方法类型

TreeSearchFunc

typescript
type TreeSearchFunc<T = any> = (
    treeNode: T,
    info: TreeNodeInfo<T>
) => boolean

树的搜索函数类型,尽量不要在search函数中修改节点数据。

TreeOperationFunc

typescript
type TreeOperationFunc<T = any> = (
    treeNode: T,
    info: TreeNodeInfo<T>
) => void

Released under the MIT License.