Merge pull request #6583 from falsandtru/fixWeakSetWeakMapClear
Remove `clear` method in `WeakSet` and `WeakMap`
This commit is contained in:
commit
239695f7ae
2
src/lib/es6.d.ts
vendored
2
src/lib/es6.d.ts
vendored
|
@ -819,7 +819,6 @@ interface MapConstructor {
|
|||
declare var Map: MapConstructor;
|
||||
|
||||
interface WeakMap<K, V> {
|
||||
clear(): void;
|
||||
delete(key: K): boolean;
|
||||
get(key: K): V;
|
||||
has(key: K): boolean;
|
||||
|
@ -859,7 +858,6 @@ declare var Set: SetConstructor;
|
|||
|
||||
interface WeakSet<T> {
|
||||
add(value: T): WeakSet<T>;
|
||||
clear(): void;
|
||||
delete(value: T): boolean;
|
||||
has(value: T): boolean;
|
||||
[Symbol.toStringTag]: "WeakSet";
|
||||
|
|
Loading…
Reference in a new issue