mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
RegExp.compile() actually returns this, per ES6 annex B.
This commit is contained in:
parent
7bb0ce9048
commit
d2d02c796b
2
src/lib/core.d.ts
vendored
2
src/lib/core.d.ts
vendored
@ -836,7 +836,7 @@ interface RegExp {
|
||||
lastIndex: number;
|
||||
|
||||
// Non-standard extensions
|
||||
compile(): RegExp | undefined;
|
||||
compile(): this;
|
||||
}
|
||||
|
||||
interface RegExpConstructor {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user