File tree Expand file tree Collapse file tree 4 files changed +197
-131
lines changed Expand file tree Collapse file tree 4 files changed +197
-131
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ export type {
257
257
ServerSrr ,
258
258
ClearCacheFn ,
259
259
CreateRouterFn ,
260
+ ProcessRouteTreeResult ,
260
261
} from './router'
261
262
262
263
export type {
Original file line number Diff line number Diff line change @@ -3020,13 +3020,18 @@ interface RouteLike {
3020
3020
}
3021
3021
}
3022
3022
3023
+ export type ProcessRouteTreeResult < TRouteLike extends RouteLike > = {
3024
+ routesById : Record < string , TRouteLike >
3025
+ routesByPath : Record < string , TRouteLike >
3026
+ flatRoutes : Array < TRouteLike >
3027
+ }
3023
3028
export function processRouteTree < TRouteLike extends RouteLike > ( {
3024
3029
routeTree,
3025
3030
initRoute,
3026
3031
} : {
3027
3032
routeTree : TRouteLike
3028
3033
initRoute ?: ( route : TRouteLike , index : number ) => void
3029
- } ) {
3034
+ } ) : ProcessRouteTreeResult < TRouteLike > {
3030
3035
const routesById = { } as Record < string , TRouteLike >
3031
3036
const routesByPath = { } as Record < string , TRouteLike >
3032
3037
You can’t perform that action at this time.
0 commit comments