@supuwoerc/toolkit
    Preparing search index...

    Type Alias Tree<T, K>

    Tree: T & { [P in K]?: Tree<T, K>[] }

    树类型 — Tree type

    将节点类型拓展为包含可选子节点数组(默认 key 为 'children')。

    Extends a node type to include an optional children array (default key: 'children').

    Type Parameters

    • T = TreeNode

      节点类型 / node type

    • K extends string = "children"

      children 字段名,默认为 'children' / children key name, default 'children'