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

    Interface ITreeNodeChildren<T, N, C>

    Interface representing the children of a tree node.

    interface ITreeNodeChildren<
        T,
        N extends ITreeNode<T, N, C>,
        C extends ITreeNodeChildren<T, N, C>,
    > {
        capacity: number;
        "[asyncIterator]"(): AsyncIterator<N, any, any>;
        "[iterator]"(): Iterator<Promisable<N>, any, any>;
        clear(): Promisable<void>;
        concat(...items: N[]): MaybeAsyncIterableIterator<N>;
        count(): Promisable<number>;
        remove(
            condition: Predicate<[N]>,
        ): Promisable<MaybeAsyncIterableIterator<N>>;
        removeFirst(condition: Predicate<[N]>): Promisable<boolean>;
        replace(
            condition: Predicate<[N]>,
            newItemFactory: Callable<[N], N>,
        ): Promisable<MaybeAsyncIterableIterator<N>>;
        replaceFirst(condition: Predicate<[N]>, newItem: N): Promisable<boolean>;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    capacity: number

    The maximum number of elements the collection can hold. If the collection is unbounded, this will be Infinity.

    Methods

    • Returns AsyncIterator<N, any, any>

    • Returns Iterator<Promisable<N>, any, any>