Skip to main content
Version: v1

NodeData Interface

The fields required by a node in a tree

Signature

export interface NodeData<TId>

Type Parameters

Parameter Description
TId

Properties

Property Modifiers Type Description
definition Definition The meaning of this node. Provides contexts/semantics for this node and its content. Typically use to associate a node with metadata (including a schema) and source code (types, behaviors, etc).
identifier TId Identifier which can be used to refer to this Node.
payload optional Payload A payload of arbitrary serializable data

Property Details

definition

The meaning of this node. Provides contexts/semantics for this node and its content. Typically use to associate a node with metadata (including a schema) and source code (types, behaviors, etc).

Signature

readonly definition: Definition;

Type: Definition

identifier

Identifier which can be used to refer to this Node.

Signature

readonly identifier: TId;

Type: TId

payload

A payload of arbitrary serializable data

Signature

readonly payload?: Payload;

Type: Payload