• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/// <reference lib="es2015.iterable" />
2/// <reference lib="es2015.symbol" />
3
4interface SymbolConstructor {
5    /**
6     * A regular expression method that matches the regular expression against a string. Called
7     * by the String.prototype.matchAll method.
8     */
9    readonly matchAll: unique symbol;
10}
11
12interface RegExp {
13    /**
14     * Matches a string with this regular expression, and returns an iterable of matches
15     * containing the results of that search.
16     * @param string A string to search within.
17     */
18    [Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
19}
20