Added the '[Symbol.search]' method to the 'RegExp' interface.
This commit is contained in:
parent
97618104bd
commit
e4077ec0f8
1 changed files with 8 additions and 0 deletions
8
src/lib/es6.d.ts
vendored
8
src/lib/es6.d.ts
vendored
|
@ -702,6 +702,14 @@ interface RegExp {
|
||||||
*/
|
*/
|
||||||
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finds the position beginning first substring match in a regular expression search
|
||||||
|
* using this regular expression.
|
||||||
|
*
|
||||||
|
* @param string The string to search within.
|
||||||
|
*/
|
||||||
|
[Symbol.search](string: string): number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
|
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
|
||||||
* The characters in this string are sequenced and concatenated in the following order:
|
* The characters in this string are sequenced and concatenated in the following order:
|
||||||
|
|
Loading…
Reference in a new issue