interface WeakSetStoreMethods<K> {
    add: ((key) => void);
    addAll: ((keys) => void);
    delete: ((key) => void);
    has: ((key) => boolean);
}

Type Parameters

  • K

Properties

Properties

add: ((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.

Type declaration

    • (key): void
    • Parameters

      • key: K

      Returns void

addAll: ((keys) => void)

Type declaration

    • (keys): void
    • Parameters

      • keys: CopySet<any> | Iterable<K>

      Returns void

delete: ((key) => void)

Remove the key. Throws if not found.

Type declaration

    • (key): void
    • Parameters

      • key: K

      Returns void

has: ((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.

Type declaration

    • (key): boolean
    • Parameters

      • key: K

      Returns boolean