UNPKG

935 BMarkdownView Raw
1# Installation
2> `npm install --save @types/es6-weak-map`
3
4# Summary
5This package contains type definitions for es6-weak-map (https://github.com/medikoo/es6-weak-map).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/es6-weak-map.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/es6-weak-map/index.d.ts)
10````ts
11export = WeakMap;
12export as namespace WeakMap;
13
14interface Iterable<T> {
15 [Symbol.iterator](): Iterator<T>;
16}
17
18declare class WeakMap<K, V> {
19 constructor();
20 constructor(iterable: Iterable<[K, V]>);
21
22 delete(key: K): boolean;
23 get(key: K): V;
24 has(key: K): boolean;
25 set(key: K, value?: V): WeakMap<K, V>;
26}
27
28````
29
30### Additional Details
31 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
32 * Dependencies: none
33
34# Credits
35These definitions were written by [Pine Mizune](https://github.com/pine).
36
\No newline at end of file