UNPKG

@types/es6-weak-map

Version:
36 lines (27 loc) 935 B
# Installation > `npm install --save @types/es6-weak-map` # Summary This package contains type definitions for es6-weak-map (https://github.com/medikoo/es6-weak-map). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/es6-weak-map. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/es6-weak-map/index.d.ts) ````ts export = WeakMap; export as namespace WeakMap; interface Iterable<T> { [Symbol.iterator](): Iterator<T>; } declare class WeakMap<K, V> { constructor(); constructor(iterable: Iterable<[K, V]>); delete(key: K): boolean; get(key: K): V; has(key: K): boolean; set(key: K, value?: V): WeakMap<K, V>; } ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: none # Credits These definitions were written by [Pine Mizune](https://github.com/pine).