https://github.com/Microsoft/TypeScript
Raw File
Tip revision: d62f677807eeced55aed7fbc3a3dad2fb9674c9f authored by Anders Hejlsberg on 02 February 2020, 16:55:48 UTC
Also loop for instantiations with checkType=any
Tip revision: d62f677
es2020.symbol.wellknown.d.ts
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.symbol" />

interface SymbolConstructor {
    /**
     * A regular expression method that matches the regular expression against a string. Called
     * by the String.prototype.matchAll method.
     */
    readonly matchAll: symbol;
}

interface RegExp {
    /**
     * Matches a string with this regular expression, and returns an iterable of matches
     * containing the results of that search.
     * @param string A string to search within.
     */
    [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
}
back to top