Skip to main content
Version: v1

TreeViewNode Interface

An immutable view of a distributed tree node.

Signature

export interface TreeViewNode extends NodeData<NodeId>

Extends: NodeData<NodeId

Properties

Property Modifiers Type Description
parentage optional TraitLocation The parent and trait under which this node resides. Undefined iff this is the root node of the tree (i.e. initialTree).
traits ReadonlyMap<TraitLabel, readonly NodeId[]> The IDs of the children under this node

Property Details

parentage

The parent and trait under which this node resides. Undefined iff this is the root node of the tree (i.e. initialTree).

Signature

readonly parentage?: TraitLocation;

Type: TraitLocation

traits

The IDs of the children under this node

Signature

readonly traits: ReadonlyMap<TraitLabel, readonly NodeId[]>;

Type: ReadonlyMap<TraitLabel, readonly NodeId[]>