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

+2-2
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)