Remove WeakMap/WeakSet#clear method #6500
Labels
Breaking Change
Would introduce errors in existing code
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Good First Issue
Well scoped, documented and has the green light
Help Wanted
You can do this
Milestone
changes:
// lib.es6.d.ts and lib.core.es6.d.ts // also WeakSet interface WeakMap<K, V> { - clear(): void; delete(key: K): boolean; get(key: K): V; has(key: K): boolean; set(key: K, value?: V): WeakMap<K, V>; [Symbol.toStringTag]: "WeakMap"; }
https://tc39.github.io/ecma262/#sec-weakmap-constructor
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
https://bugzilla.mozilla.org/show_bug.cgi?id=1101817
The text was updated successfully, but these errors were encountered: