Interface MaybeAsyncAppendOnlySet<T>

An append-only Set that may have async operations.

interface MaybeAsyncAppendOnlySet {
    add(value, options?): unknown;
    has(value, options?): MaybePromise<boolean>;
}

Type Parameters

  • T

Hierarchy

Implemented by

Methods

Methods

  • Adds an entry to the set. Returns MaybePromise<unknown> to be compatible with ES Set.

    Parameters

    Returns unknown

Generated using TypeDoc