interface SetStore {
    add: ((key) => void);
    addAll: ((keys) => void);
    clear: ((keyPatt?) => void);
    delete: ((key) => void);
    getSize: ((keyPatt?) => number);
    has: ((key) => boolean);
    keys: ((keyPatt?) => Iterable<K>);
    snapshot: ((keyPatt?) => CopySet<K>);
    values: ((keyPatt?) => Iterable<K>);
}

Type Parameters

Properties

add: ((key) => void)

Type declaration

    • (key): void
    • Add the key to the set if it is not already there. Do nothing silently if already there. The key must be one allowed by this store. For example a scalar store only allows primitives and remotables.

      Parameters

      • key: K

      Returns void

addAll: ((keys) => void)

Type declaration

    • (keys): void
    • Parameters

      Returns void

clear: ((keyPatt?) => void)

Type declaration

    • (keyPatt?): void
    • Parameters

      • Optional keyPatt: any

      Returns void

delete: ((key) => void)

Type declaration

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

      Parameters

      • key: K

      Returns void

getSize: ((keyPatt?) => number)

Type declaration

    • (keyPatt?): number
    • Parameters

      • Optional keyPatt: 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 store.

      Parameters

      • key: K

      Returns boolean

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

Type declaration

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

      • Optional keyPatt: any

      Returns Iterable<K>

snapshot: ((keyPatt?) => CopySet<K>)

Type declaration

    • (keyPatt?): CopySet<K>
    • Parameters

      • Optional keyPatt: any

      Returns CopySet<K>

values: ((keyPatt?) => Iterable<K>)

Type declaration

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

      • Optional keyPatt: any

      Returns Iterable<K>

Generated using TypeDoc