11 lines
394 B
TypeScript
11 lines
394 B
TypeScript
/// <reference lib="es2015.iterable" />
|
|
|
|
interface String {
|
|
/**
|
|
* Matches a string with a regular expression, and returns an iterable of matches
|
|
* containing the results of that search.
|
|
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
|
|
*/
|
|
matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
|
|
}
|