First concept

This commit is contained in:
will
2026-04-02 19:13:46 +01:00
commit 1da5da43e1
9785 changed files with 2077949 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
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;