4.0.4 • Published 5 months ago

@types/string.prototype.matchall v4.0.4

Weekly downloads
57,069
License
MIT
Repository
github
Last release
5 months ago

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

// Type definitions for string.prototype.matchall 4.0
// Project: https://github.com/ljharb/String.prototype.matchAll#readme
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * 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<RegExpMatchArray>;

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

export = matchAll;

Additional Details

  • Last updated: Wed, 01 Dec 2021 00:01:08 GMT
  • Dependencies: none
  • Global values: none

Credits

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