Interface MaybeAsyncMap<K, V>

A Map that may have async operations.

interface MaybeAsyncMap {
    delete(key, options?): unknown;
    get(key, options?): MaybePromise<undefined | V>;
    has(key, options?): MaybePromise<boolean>;
    set(key, value, options?): unknown;
}

Type Parameters

  • K

  • V

Hierarchy

Implemented by

Methods

Methods

  • Deletes an entry by key from the map. Returns MaybePromise<unknown> to be compatible with ES Map.

    Parameters

    Returns unknown

  • Sets an entry in the map. Returns MaybePromise<unknown> to be compatible with ES Map.

    Parameters

    Returns unknown

Generated using TypeDoc