Skip to content

Interface: TreeState\<TRow\>

Defined in: src/tree-editor/types.ts:20

Immutable snapshot of the tree structure. Commands transform one TreeState into another without mutation.

Type Parameters

TRow

TRow

Properties

nodes

nodes: Map<string, TreeNode<TRow>>

Defined in: src/tree-editor/types.ts:22

All nodes keyed by id.


rootIds

rootIds: string[]

Defined in: src/tree-editor/types.ts:24

Ordered root node ids.