diff --git a/src/lib/core.d.ts b/src/lib/core.d.ts index 7f498488f2136..5abc7fe203747 100644 --- a/src/lib/core.d.ts +++ b/src/lib/core.d.ts @@ -822,6 +822,7 @@ interface RegExp { declare var RegExp: { new (pattern: string, flags?: string): RegExp; (pattern: string, flags?: string): RegExp; + prototype: RegExp; // Non-standard extensions $1: string; diff --git a/src/lib/extensions.d.ts b/src/lib/extensions.d.ts index 82cc129ecbc08..f4387543c01aa 100644 --- a/src/lib/extensions.d.ts +++ b/src/lib/extensions.d.ts @@ -631,6 +631,7 @@ interface Map { } declare var Map: { new (): Map; + prototype: Map; } interface WeakMap { @@ -642,6 +643,7 @@ interface WeakMap { } declare var WeakMap: { new (): WeakMap; + prototype: WeakMap; } interface Set { @@ -654,6 +656,7 @@ interface Set { } declare var Set: { new (): Set; + prototype: Set; } declare module Intl { diff --git a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types index 89490567f1449..3e688cc7674a7 100644 --- a/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types +++ b/tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types @@ -7,7 +7,7 @@ class Rule { >regex : RegExp >RegExp : RegExp >new RegExp('') : RegExp ->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; } +>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; } public name: string = ''; >name : string