@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<N | null>;
        right(): Promisable<N | null>;
        setLeft(node: N | null): Promisable<void>;
        setRight(node: N | null): Promisable<void>;
        setValue(value: T): Promisable<void>;
        value(): Promisable<T | undefined>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    children: C

    Methods