Files
scrap/node_modules/next/dist/shared/lib/router/utils/route-matcher.d.ts
2024-09-24 03:52:46 +00:00

9 lines
279 B
TypeScript

import type { RouteRegex } from './route-regex';
export interface RouteMatchFn {
(pathname: string | null | undefined): false | Params;
}
export interface Params {
[param: string]: any;
}
export declare function getRouteMatcher({ re, groups }: RouteRegex): RouteMatchFn;