NodeKind Enum
Kind of tree node.
Signature
export declare enum NodeKind
Remarks
More kinds may be added over time, so do not assume this is an exhaustive set.
Flags
Flag | Description |
---|---|
Array | A node which serves as an array, storing children in an ordered sequence. |
Leaf | A node which stores a single leaf value. |
Map | A node which serves as a map, storing children under string keys. |
Object | A node which stores a heterogenous collection of children in named fields. |
Array
A node which serves as an array, storing children in an ordered sequence.
Signature
Array = 1
Leaf
A node which stores a single leaf value.
Signature
Leaf = 3
Map
A node which serves as a map, storing children under string keys.
Signature
Map = 0
Object
A node which stores a heterogenous collection of children in named fields.
Signature
Object = 2
Remarks
Each field gets its own schema.