Skip to content

Commit 76ec1f0

Browse files
committed
Add a non-generic construct signature to Map, Set, and WeakMap
1 parent 247d582 commit 76ec1f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/es6.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ interface Map<K, V> {
694694
}
695695

696696
interface MapConstructor {
697+
new (): Map<any, any>;
697698
new <K, V>(): Map<K, V>;
698699
new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;
699700
prototype: Map<any, any>;
@@ -710,6 +711,7 @@ interface WeakMap<K, V> {
710711
}
711712

712713
interface WeakMapConstructor {
714+
new (): WeakMap<any, any>;
713715
new <K, V>(): WeakMap<K, V>;
714716
new <K, V>(iterable: Iterable<[K, V]>): WeakMap<K, V>;
715717
prototype: WeakMap<any, any>;
@@ -731,6 +733,7 @@ interface Set<T> {
731733
}
732734

733735
interface SetConstructor {
736+
new (): Set<any>;
734737
new <T>(): Set<T>;
735738
new <T>(iterable: Iterable<T>): Set<T>;
736739
prototype: Set<any>;
@@ -746,6 +749,7 @@ interface WeakSet<T> {
746749
}
747750

748751
interface WeakSetConstructor {
752+
new (): WeakSet<any>;
749753
new <T>(): WeakSet<T>;
750754
new <T>(iterable: Iterable<T>): WeakSet<T>;
751755
prototype: WeakSet<any>;

0 commit comments

Comments
 (0)