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 16:07:52 GMT
- Dependencies: none
Credits
These definitions were written by Piotr Błażejewicz.