Content-Length: 265028 | pFad | http://github.com/microsoft/TypeScript/commit/81f71530c4c3b43860100be75881f41876cf8c65

1B fix(lib): Fix `RegExp` constructor with `string|RegExp` and `flags` (… · microsoft/TypeScript@81f7153 · GitHub
Skip to content

Commit 81f7153

Browse files
ExE-Bosssandersn
authored andcommitted
fix(lib): Fix RegExp constructor with string|RegExp and flags (#30586)
1 parent 74c6bc1 commit 81f7153

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/es2015.core.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ interface RegExp {
373373
}
374374

375375
interface RegExpConstructor {
376-
new (pattern: RegExp, flags?: string): RegExp;
377-
(pattern: RegExp, flags?: string): RegExp;
376+
new (pattern: RegExp | string, flags?: string): RegExp;
377+
(pattern: RegExp | string, flags?: string): RegExp;
378378
}
379379

380380
interface String {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/microsoft/TypeScript/commit/81f71530c4c3b43860100be75881f41876cf8c65

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy