https://github.com/Microsoft/TypeScript
Raw File
Tip revision: e9ca31406bf7b6741d08785a8736b932c9a73bda authored by Ron Buckton on 08 October 2019, 20:25:44 UTC
Ensure ts.Promise interface is based on the global Promise interface
Tip revision: e9ca314
es2020.string.d.ts
/// <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>;
}
back to top