Type Alias KeyedNodeType<TNode, TKey>

KeyedNodeType: BaseTypedNodeType<
    TNode,
    TKey,
    {
        key: TKey;
        findByKey(key: NodeKeyValue): undefined | TNode;
        getKey(node: TNode): undefined | NodeKeyValue;
    },
>

Node type that uses a specific property as a unique key for each node

Type Parameters

  • TNode extends NodeWithAnyType

    Node structure that adheres to this type

  • TKey extends keyof TNode

    Key field in the node structure

Optional keys in the node structure

Additional properties and methods