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

Version Path
clapton-0.0.26 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.26 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts
clapton-0.0.25 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.24 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.24 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts
clapton-0.0.23 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.23 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts
clapton-0.0.22 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.22 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts
clapton-0.0.21 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.20 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts
clapton-0.0.20 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.19 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts
clapton-0.0.19 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.18 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.18 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts
clapton-0.0.17 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.mts
clapton-0.0.17 lib/clapton/javascripts/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.ts