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

Type Parameters

  • K

Properties

Properties

add: ((key: K) => 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.

addAll: ((keys: CopySet<any> | Iterable<K, any, any>) => void)
delete: ((key: K) => void)

Remove the key. Throws if not found.

has: ((key: K) => 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.