@ac-essentials/misc-util
    Preparing search index...

    Interface IBinaryTreeNode<T, N, C>

    Interface representing a node in a binary tree.

    A binary tree node contains a value and references to its left and right child nodes.

    interface IBinaryTreeNode<
        T,
        N extends IBinaryTreeNode<T, N, C>,
        C extends ITreeNodeChildren<T, N, C>,
    > {
        children: C;
        left(): Promisable<null | N>;
        right(): Promisable<null | N>;
        setLeft(node: null | N): Promisable<void>;
        setRight(node: null | N): Promisable<void>;
        setValue(value: T): Promisable<void>;
        value(): Promisable<undefined | T>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    children: C

    Methods