Type Alias NodeType<T, ChildKey>

NodeType<T, ChildKey>: {
    [key in ChildKey]: T[] | null | undefined
}

树结构类型

Type Parameters

  • T
  • ChildKey extends keyof T