Skip to main content
Version: 1.3.0

Interface: StructuralNode<T>

Defined in: src/Mnemonic/structural-migrations.ts:44

Default tree node shape supported by the structural migration helpers.

If your nodes already use id and children, you can call the helpers directly without supplying StructuralTreeHelpers.

Type Parameters​

Type ParameterDescription
TTree node type

Properties​

children?​

optional children: readonly T[]

Defined in: src/Mnemonic/structural-migrations.ts:53

Optional child nodes.


id​

id: string

Defined in: src/Mnemonic/structural-migrations.ts:48

Stable node identifier used for lookup and rename operations.