Interface WeakMap<K, V>
interface WeakMap<K, V> {
[toStringTag]: string;
delete(key: K): boolean;
get(key: K): V;
has(key: K): boolean;
set(key: K, value: V): this;
}
[toStringTag]: string;
delete(key: K): boolean;
get(key: K): V;
has(key: K): boolean;
set(key: K, value: V): this;
}
Type Parameters
- K extends WeakKey
- V
Removes the specified element from the WeakMap.