Interface TreeData<D>

TreeData is a nested data structure that contains nodes represent a tree.

Type Parameters

  • D

Hierarchy

  • TreeData

Properties

Properties

children?: TreeData<D>[]

Children nodes. Each node itself is a TreeData object, allowing for an arbitrary depth of nesting.

data: D

An object with string key and any value.

id: ID

Tree node IDs must be unique within the whole graph, not only the current tree.

Generated using TypeDoc