UNPKG

@stacksjs/router

Version:
13 lines (12 loc) 468 B
/** * Route registry types — owned by `@stacksjs/router` because the router * consumes them. `app/Routes.ts` (the project-level route map) imports * these via the public package name rather than a relative reach into * the framework defaults tree (stacksjs/stacks#1863, T-10). */ export declare interface RouteDefinition { path: string prefix?: string middleware?: string | string[] } export type RouteRegistry = Record<string, string | RouteDefinition>;