Interface SyncArena<K, V>

A Arena with synchronous operations.

interface SyncArena {
    add(value): K;
    delete(key, options?): unknown;
    get(key): undefined | V;
    has(key): boolean;
    set(key, value): void;
}

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

Generated using TypeDoc