Skip to main content

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​

FlagDescription
ArrayA node which serves as an array, storing children in an ordered sequence.
LeafA node which stores a single leaf value.
MapA node which serves as a map, storing children under string keys.
ObjectA node which stores a heterogenous collection of children in named fields.
RecordA node which serves as a record, storing children under string keys.

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.

Record​

A node which serves as a record, storing children under string keys.

Signature​

Record = 4