Interface MaybeAsyncSet<T>

A Set that may have async operations.

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

Type Parameters

  • T

Hierarchy

Implemented by

Methods

Methods

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

    Parameters

    Returns unknown

Generated using TypeDoc