route-matcher.d.ts 275 B

12345678
  1. import type { RouteRegex } from './route-regex';
  2. export interface RouteMatch {
  3. (pathname: string | null | undefined): false | Params;
  4. }
  5. export interface Params {
  6. [param: string]: any;
  7. }
  8. export declare function getRouteMatcher({ re, groups }: RouteRegex): RouteMatch;