diff options
Diffstat (limited to 'alarm/node_modules/matchit/index.d.ts')
-rw-r--r-- | alarm/node_modules/matchit/index.d.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/alarm/node_modules/matchit/index.d.ts b/alarm/node_modules/matchit/index.d.ts new file mode 100644 index 0000000..fb6c0dd --- /dev/null +++ b/alarm/node_modules/matchit/index.d.ts @@ -0,0 +1,11 @@ +export interface Segment { + old: string; + type: number; + val: string; +} + +export type Route = Segment[]; + +export function exec(url: string, match: Route): Record<string, string>; +export function match(path: string, routes: Route[]): Route; +export function parse(path: string): Route; |