@types/string.prototype.matchall
TypeScript icon, indicating that this package has built-in type declarations

4.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/string.prototype.matchall

Weekly Downloads

47,291

Version

4.0.4

License

MIT

Unpacked Size

3.61 kB

Total Files

5

Last publish

Collaborators

  • types