Skip to content

Commit 2667c60

Browse files
authored
Update parameter types of RegExp compile method (microsoft#46038)
1 parent 0cd2330 commit 2667c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/es5.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ interface RegExp {
945945

946946
// Non-standard extensions
947947
/** @deprecated A legacy feature for browser compatibility */
948-
compile(): this;
948+
compile(pattern: string, flags?: string): this;
949949
}
950950

951951
interface RegExpConstructor {

0 commit comments

Comments
 (0)