Type alias Tree<T, K>

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

Type Parameters

  • T = TreeNode

  • K extends string = "children"

Generated using TypeDoc