Skip to content

Commit 9c71eaf

Browse files
authored
Merge pull request microsoft#25194 from Vimal-Raghubir/master
Fix issue regarding WeakMap constructor
2 parents 6cd27a3 + b883a82 commit 9c71eaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/es2015.collection.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ interface WeakMap<K extends object, V> {
3030
}
3131

3232
interface WeakMapConstructor {
33-
new (): WeakMap<object, any>;
34-
new <K extends object, V>(entries?: ReadonlyArray<[K, V]> | null): WeakMap<K, V>;
33+
new <K extends object = object, V = any>(entries?: ReadonlyArray<[K, V]> | null): WeakMap<K, V>;
3534
readonly prototype: WeakMap<object, any>;
3635
}
3736
declare var WeakMap: WeakMapConstructor;

0 commit comments

Comments
 (0)