1 | # Installation
|
2 | > `npm install --save @types/es6-weak-map`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for es6-weak-map (https://github.com/medikoo/es6-weak-map).
|
6 |
|
7 | # Details
|
8 | Files 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
|
11 | export = WeakMap;
|
12 | export as namespace WeakMap;
|
13 |
|
14 | interface Iterable<T> {
|
15 | [Symbol.iterator](): Iterator<T>;
|
16 | }
|
17 |
|
18 | declare 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
|
35 | These definitions were written by [Pine Mizune](https://github.com/pine).
|
36 |
|
\ | No newline at end of file |