@sentry/remix
Version:
Official Sentry SDK for Remix
10 lines • 537 B
TypeScript
import type { MatcherLike, RequestContextLike } from '../types';
/**
* Resolve the low cardinality route pattern for a request.
*
* The request context never carries the matched pattern: the router matches after its middleware is
* entered, and only writes `params` back. So this re-runs the match against the router's own matcher,
* applying the router's own selection rules.
*/
export declare function resolveRoutePattern(matcher: MatcherLike, context: RequestContextLike): string | undefined;
//# sourceMappingURL=route.d.ts.map