mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 05:11:16 -06:00
Make WeakMap.prototype.set second parameter optional
This commit is contained in:
parent
6b5d0b091c
commit
20bbebc7eb
2
src/lib/es6.d.ts
vendored
2
src/lib/es6.d.ts
vendored
@ -570,7 +570,7 @@ interface WeakMap<K, V> {
|
||||
delete(key: K): boolean;
|
||||
get(key: K): V;
|
||||
has(key: K): boolean;
|
||||
set(key: K, value: V): WeakMap<K, V>;
|
||||
set(key: K, value?: V): WeakMap<K, V>;
|
||||
// [Symbol.toStringTag]: string;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user