npm.io
4.0.4 • Published 2 years ago

@types/string.prototype.matchall

Licence
MIT
Version
4.0.4
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/string.prototype.matchall

Summary

This package contains type definitions for string.prototype.matchall (https://github.com/ljharb/String.prototype.matchAll#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/string.prototype.matchall.

index.d.ts

/**
 * Matches a string with a regular expression, and returns an iterable of matches
 * containing the results of that search.
 * @param str string to match
 * @param regexp A variable name or string literal containing the regular expression pattern and flags.
 */
declare function matchAll(str: string, regexp: string | RegExp): IterableIterator<RegExpExecArray>;

declare namespace matchAll {
    function shim(): void;
}

export = matchAll;

Additional Details

  • Last updated: Mon, 04 Dec 2023 1652 GMT
  • Dependencies: none

Credits

These definitions were written by Piotr Błażejewicz.