JSPM

@types/string.prototype.matchall

4.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 81592
  • Score
    100M100P100Q163656F
  • License MIT

TypeScript definitions for string.prototype.matchall

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/string.prototype.matchall) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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.