Sha256: aa038abfd06cc847cb655c03feef57f6846aba7cc4cfb49d8d80251a207e18c6
Contents?: true
Size: 592 Bytes
Versions: 52
Compression:
Stored size: 592 Bytes
Contents
type Path = string | RegExp; type PathParams<KeyType extends keyof any = string> = { [ParamName in KeyType]: string | ReadonlyArray<string>; }; interface Match { matches: boolean; params?: PathParams; } /** * Coerce a path supported by MSW into a path * supported by "path-to-regexp". */ declare function coercePath(path: string): string; /** * Returns the result of matching given request URL against a mask. */ declare function matchRequestUrl(url: URL, path: Path, baseUrl?: string): Match; export { type Match, type Path, type PathParams, coercePath, matchRequestUrl };
Version data entries
52 entries across 26 versions & 1 rubygems