interface MapStore {
    addAll: ((entries) => void);
    clear: ((keyPatt?, valuePatt?) => void);
    delete: ((key) => void);
    entries: ((keyPatt?, valuePatt?) => Iterable<[K, V]>);
    get: ((key) => V);
    getSize: ((keyPatt?, valuePatt?) => number);
    has: ((key) => boolean);
    init: ((key, value) => void);
    keys: ((keyPatt?, valuePatt?) => Iterable<K>);
    set: ((key, value) => void);
    snapshot: ((keyPatt?, valuePatt?) => CopyMap<K, V>);
    values: ((keyPatt?, valuePatt?) => Iterable<V>);
}

Type Parameters

Properties

addAll: ((entries) => void)

Type declaration

    • (entries): void
    • Parameters

      • entries: CopyMap<K, V> | Iterable<[K, V]>

      Returns void

clear: ((keyPatt?, valuePatt?) => void)

Type declaration

    • (keyPatt?, valuePatt?): void
    • Parameters

      • Optional keyPatt: any
      • Optional valuePatt: any

      Returns void

delete: ((key) => void)

Type declaration

    • (key): void
    • Remove the key. Throws if not found.

      Parameters

      • key: K

      Returns void

entries: ((keyPatt?, valuePatt?) => Iterable<[K, V]>)

Type declaration

    • (keyPatt?, valuePatt?): Iterable<[K, V]>
    • Parameters

      • Optional keyPatt: any
      • Optional valuePatt: any

      Returns Iterable<[K, V]>

get: ((key) => V)

Type declaration

    • (key): V
    • Return a value for the key. Throws if not found.

      Parameters

      • key: K

      Returns V

getSize: ((keyPatt?, valuePatt?) => number)

Type declaration

    • (keyPatt?, valuePatt?): number
    • Parameters

      • Optional keyPatt: any
      • Optional valuePatt: any

      Returns number

has: ((key) => boolean)

Type declaration

    • (key): boolean
    • Check if a key exists. The key can be any JavaScript value, though the answer will always be false for keys that cannot be found in this map

      Parameters

      • key: K

      Returns boolean

init: ((key, value) => void)

Type declaration

    • (key, value): void
    • Initialize the key only if it doesn't already exist. The key must be one allowed by this store. For example a scalar store only allows primitives and remotables.

      Parameters

      • key: K
      • value: V

      Returns void

keys: ((keyPatt?, valuePatt?) => Iterable<K>)

Type declaration

    • (keyPatt?, valuePatt?): Iterable<K>
    • Parameters

      • Optional keyPatt: any
      • Optional valuePatt: any

      Returns Iterable<K>

set: ((key, value) => void)

Type declaration

    • (key, value): void
    • Set the key. Throws if not found.

      Parameters

      • key: K
      • value: V

      Returns void

snapshot: ((keyPatt?, valuePatt?) => CopyMap<K, V>)

Type declaration

    • (keyPatt?, valuePatt?): CopyMap<K, V>
    • Parameters

      • Optional keyPatt: any
      • Optional valuePatt: any

      Returns CopyMap<K, V>

values: ((keyPatt?, valuePatt?) => Iterable<V>)

Type declaration

    • (keyPatt?, valuePatt?): Iterable<V>
    • Parameters

      • Optional keyPatt: any
      • Optional valuePatt: any

      Returns Iterable<V>

Generated using TypeDoc