Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
11
node_modules/next/dist/shared/lib/router/utils/route-matcher.d.ts
generated
vendored
Normal file
11
node_modules/next/dist/shared/lib/router/utils/route-matcher.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import type { Group } from './route-regex';
|
||||
import type { Params } from '../../../../server/request/params';
|
||||
export interface RouteMatchFn {
|
||||
(pathname: string): false | Params;
|
||||
}
|
||||
type RouteMatcherOptions = {
|
||||
re: Pick<RegExp, 'exec'>;
|
||||
groups: Record<string, Group>;
|
||||
};
|
||||
export declare function getRouteMatcher({ re, groups, }: RouteMatcherOptions): RouteMatchFn;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue