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…
Reference in a new issue