@types/es6-weak-map
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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

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.

Dependents (0)

Package Sidebar

Install

npm i @types/es6-weak-map

Weekly Downloads

2,781

Version

1.2.2

License

MIT

Unpacked Size

3.2 kB

Total Files

5

Last publish

Collaborators

  • types