Skip to content

Commit 6f54cc4

Browse files
committed
Add missing prototype properties
1 parent cf3d284 commit 6f54cc4

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/lib/core.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ interface RegExp {
822822
declare var RegExp: {
823823
new (pattern: string, flags?: string): RegExp;
824824
(pattern: string, flags?: string): RegExp;
825+
prototype: RegExp;
825826

826827
// Non-standard extensions
827828
$1: string;

src/lib/extensions.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ interface Map<K, V> {
631631
}
632632
declare var Map: {
633633
new <K, V>(): Map<K, V>;
634+
prototype: Map<any, any>;
634635
}
635636

636637
interface WeakMap<K, V> {
@@ -642,6 +643,7 @@ interface WeakMap<K, V> {
642643
}
643644
declare var WeakMap: {
644645
new <K, V>(): WeakMap<K, V>;
646+
prototype: WeakMap<any, any>;
645647
}
646648

647649
interface Set<T> {
@@ -654,6 +656,7 @@ interface Set<T> {
654656
}
655657
declare var Set: {
656658
new <T>(): Set<T>;
659+
prototype: Set<any>;
657660
}
658661

659662
declare module Intl {

tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Rule {
77
>regex : RegExp
88
>RegExp : RegExp
99
>new RegExp('') : RegExp
10-
>RegExp : { (pattern: string, flags?: string): RegExp; new (pattern: string, flags?: string): RegExp; $1: string; $2: string; $3: string; $4: string; $5: string; $6: string; $7: string; $8: string; $9: string; lastMatch: string; }
10+
>RegExp : { (pattern: string, flags?: string): RegExp; new (pattern: string, flags?: string): RegExp; prototype: RegExp; $1: string; $2: string; $3: string; $4: string; $5: string; $6: string; $7: string; $8: string; $9: string; lastMatch: string; }
1111

1212
public name: string = '';
1313
>name : string

0 commit comments

Comments
 (0)