88// You should NOT make any changes in this file as it will be overwritten.
99// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
1010
11- // Import Routes
11+ import { Route as rootRouteImport } from './routes/__root'
12+ import { Route as IndexRouteImport } from './routes/index'
13+ import { Route as AppsCreateRouteImport } from './routes/apps/create'
14+ import { Route as AppsAppIdDetailsRouteImport } from './routes/apps/$appId/details'
1215
13- import { Route as rootRoute } from './routes/__root'
14- import { Route as IndexImport } from './routes/index'
15- import { Route as AppsCreateImport } from './routes/apps/create'
16- import { Route as AppsAppIdDetailsImport } from './routes/apps/$appId/details'
17-
18- // Create/Update Routes
19-
20- const IndexRoute = IndexImport . update ( {
16+ const IndexRoute = IndexRouteImport . update ( {
2117 id : '/' ,
2218 path : '/' ,
23- getParentRoute : ( ) => rootRoute ,
19+ getParentRoute : ( ) => rootRouteImport ,
2420} as any )
25-
26- const AppsCreateRoute = AppsCreateImport . update ( {
21+ const AppsCreateRoute = AppsCreateRouteImport . update ( {
2722 id : '/apps/create' ,
2823 path : '/apps/create' ,
29- getParentRoute : ( ) => rootRoute ,
24+ getParentRoute : ( ) => rootRouteImport ,
3025} as any )
31-
32- const AppsAppIdDetailsRoute = AppsAppIdDetailsImport . update ( {
26+ const AppsAppIdDetailsRoute = AppsAppIdDetailsRouteImport . update ( {
3327 id : '/apps/$appId/details' ,
3428 path : '/apps/$appId/details' ,
35- getParentRoute : ( ) => rootRoute ,
29+ getParentRoute : ( ) => rootRouteImport ,
3630} as any )
3731
38- // Populate the FileRoutesByPath interface
39-
40- declare module '@tanstack/react-router' {
41- interface FileRoutesByPath {
42- '/' : {
43- id : '/'
44- path : '/'
45- fullPath : '/'
46- preLoaderRoute : typeof IndexImport
47- parentRoute : typeof rootRoute
48- }
49- '/apps/create' : {
50- id : '/apps/create'
51- path : '/apps/create'
52- fullPath : '/apps/create'
53- preLoaderRoute : typeof AppsCreateImport
54- parentRoute : typeof rootRoute
55- }
56- '/apps/$appId/details' : {
57- id : '/apps/$appId/details'
58- path : '/apps/$appId/details'
59- fullPath : '/apps/$appId/details'
60- preLoaderRoute : typeof AppsAppIdDetailsImport
61- parentRoute : typeof rootRoute
62- }
63- }
64- }
65-
66- // Create and export the route tree
67-
6832export interface FileRoutesByFullPath {
6933 '/' : typeof IndexRoute
7034 '/apps/create' : typeof AppsCreateRoute
7135 '/apps/$appId/details' : typeof AppsAppIdDetailsRoute
7236}
73-
7437export interface FileRoutesByTo {
7538 '/' : typeof IndexRoute
7639 '/apps/create' : typeof AppsCreateRoute
7740 '/apps/$appId/details' : typeof AppsAppIdDetailsRoute
7841}
79-
8042export interface FileRoutesById {
81- __root__ : typeof rootRoute
43+ __root__ : typeof rootRouteImport
8244 '/' : typeof IndexRoute
8345 '/apps/create' : typeof AppsCreateRoute
8446 '/apps/$appId/details' : typeof AppsAppIdDetailsRoute
8547}
86-
8748export interface FileRouteTypes {
8849 fileRoutesByFullPath : FileRoutesByFullPath
8950 fullPaths : '/' | '/apps/create' | '/apps/$appId/details'
@@ -92,43 +53,43 @@ export interface FileRouteTypes {
9253 id : '__root__' | '/' | '/apps/create' | '/apps/$appId/details'
9354 fileRoutesById : FileRoutesById
9455}
95-
9656export interface RootRouteChildren {
9757 IndexRoute : typeof IndexRoute
9858 AppsCreateRoute : typeof AppsCreateRoute
9959 AppsAppIdDetailsRoute : typeof AppsAppIdDetailsRoute
10060}
10161
62+ declare module '@tanstack/react-router' {
63+ interface FileRoutesByPath {
64+ '/' : {
65+ id : '/'
66+ path : '/'
67+ fullPath : '/'
68+ preLoaderRoute : typeof IndexRouteImport
69+ parentRoute : typeof rootRouteImport
70+ }
71+ '/apps/create' : {
72+ id : '/apps/create'
73+ path : '/apps/create'
74+ fullPath : '/apps/create'
75+ preLoaderRoute : typeof AppsCreateRouteImport
76+ parentRoute : typeof rootRouteImport
77+ }
78+ '/apps/$appId/details' : {
79+ id : '/apps/$appId/details'
80+ path : '/apps/$appId/details'
81+ fullPath : '/apps/$appId/details'
82+ preLoaderRoute : typeof AppsAppIdDetailsRouteImport
83+ parentRoute : typeof rootRouteImport
84+ }
85+ }
86+ }
87+
10288const rootRouteChildren : RootRouteChildren = {
10389 IndexRoute : IndexRoute ,
10490 AppsCreateRoute : AppsCreateRoute ,
10591 AppsAppIdDetailsRoute : AppsAppIdDetailsRoute ,
10692}
107-
108- export const routeTree = rootRoute
93+ export const routeTree = rootRouteImport
10994 . _addFileChildren ( rootRouteChildren )
11095 . _addFileTypes < FileRouteTypes > ( )
111-
112- /* ROUTE_MANIFEST_START
113- {
114- "routes": {
115- "__root__": {
116- "filePath": "__root.tsx",
117- "children": [
118- "/",
119- "/apps/create",
120- "/apps/$appId/details"
121- ]
122- },
123- "/": {
124- "filePath": "index.tsx"
125- },
126- "/apps/create": {
127- "filePath": "apps/create.tsx"
128- },
129- "/apps/$appId/details": {
130- "filePath": "apps/$appId/details.tsx"
131- }
132- }
133- }
134- ROUTE_MANIFEST_END */
0 commit comments