Interface Arena<K, V>

An arena automatically assigns unique key to stored value.

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

Type Parameters

  • K

  • V

Hierarchy

Methods

Methods

Generated using TypeDoc