@types/url-match-patterns
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

Installation

npm install --save @types/url-match-patterns

Summary

This package contains type definitions for url-match-patterns (https://github.com/nickclaw/url-match-patterns).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/url-match-patterns.

index.d.ts

/**
 * Checks if a pattern matches against a URL
 *
 * @param pattern The pattern to match against
 * @param url The URL to match
 * @returns Whether the URL matched the pattern
 * @throws {AssertionError} Invalid pattern
 */
declare function match(pattern: string): (url: string) => boolean;
declare function match(pattern: string, url: string): boolean;

export default match;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Lionel Rowe.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/url-match-patterns

Weekly Downloads

1,197

Version

0.2.2

License

MIT

Unpacked Size

3.38 kB

Total Files

5

Last publish

Collaborators

  • types