diff --git a/src/lib/core.d.ts b/src/lib/core.d.ts index 280eabebeda..e3f5928794f 100644 --- a/src/lib/core.d.ts +++ b/src/lib/core.d.ts @@ -836,7 +836,7 @@ interface RegExp { lastIndex: number; // Non-standard extensions - compile(): RegExp | undefined; + compile(): this; } interface RegExpConstructor {