Open History to see the last commit
1/* eslint-disable */
2
3// @ts-nocheck
4
5// noinspection JSUnusedGlobalSymbols
6
7// This file was automatically generated by TanStack Router.
8// You should NOT make any changes in this file as it will be overwritten.
9// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
10
11import { Route as rootRouteImport } from './routes/__root'
12import { Route as TrailbaseRouteImport } from './routes/trailbase'
13import { Route as QueryRouteImport } from './routes/query'
14import { Route as ElectricRouteImport } from './routes/electric'
15import { Route as IndexRouteImport } from './routes/index'
16import { Route as ApiTodosRouteImport } from './routes/api/todos'
17import { Route as ApiConfigRouteImport } from './routes/api/config'
18import { Route as ApiTodosIdRouteImport } from './routes/api/todos.$id'
19import { Route as ApiConfigIdRouteImport } from './routes/api/config.$id'
20
21const TrailbaseRoute = TrailbaseRouteImport.update({
22 id: '/trailbase',
23 path: '/trailbase',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const QueryRoute = QueryRouteImport.update({
27 id: '/query',
28 path: '/query',
29 getParentRoute: () => rootRouteImport,
30} as any)
31const ElectricRoute = ElectricRouteImport.update({
32 id: '/electric',
33 path: '/electric',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const IndexRoute = IndexRouteImport.update({
37 id: '/',
38 path: '/',
39 getParentRoute: () => rootRouteImport,
40} as any)
41const ApiTodosRoute = ApiTodosRouteImport.update({
42 id: '/api/todos',
43 path: '/api/todos',
44 getParentRoute: () => rootRouteImport,
45} as any)
46const ApiConfigRoute = ApiConfigRouteImport.update({
47 id: '/api/config',
48 path: '/api/config',
49 getParentRoute: () => rootRouteImport,
50} as any)
51const ApiTodosIdRoute = ApiTodosIdRouteImport.update({
52 id: '/$id',
53 path: '/$id',
54 getParentRoute: () => ApiTodosRoute,
55} as any)
56const ApiConfigIdRoute = ApiConfigIdRouteImport.update({
57 id: '/$id',
58 path: '/$id',
59 getParentRoute: () => ApiConfigRoute,
60} as any)
61
62export interface FileRoutesByFullPath {
63 '/': typeof IndexRoute
64 '/electric': typeof ElectricRoute
65 '/query': typeof QueryRoute
66 '/trailbase': typeof TrailbaseRoute
67 '/api/config': typeof ApiConfigRouteWithChildren
68 '/api/todos': typeof ApiTodosRouteWithChildren
69 '/api/config/$id': typeof ApiConfigIdRoute
70 '/api/todos/$id': typeof ApiTodosIdRoute
71}
72export interface FileRoutesByTo {
73 '/': typeof IndexRoute
74 '/electric': typeof ElectricRoute
75 '/query': typeof QueryRoute
76 '/trailbase': typeof TrailbaseRoute
77 '/api/config': typeof ApiConfigRouteWithChildren
78 '/api/todos': typeof ApiTodosRouteWithChildren
79 '/api/config/$id': typeof ApiConfigIdRoute
80 '/api/todos/$id': typeof ApiTodosIdRoute
81}
82export interface FileRoutesById {
83 __root__: typeof rootRouteImport
84 '/': typeof IndexRoute
85 '/electric': typeof ElectricRoute
86 '/query': typeof QueryRoute
87 '/trailbase': typeof TrailbaseRoute
88 '/api/config': typeof ApiConfigRouteWithChildren
89 '/api/todos': typeof ApiTodosRouteWithChildren
90 '/api/config/$id': typeof ApiConfigIdRoute
91 '/api/todos/$id': typeof ApiTodosIdRoute
92}
93export interface FileRouteTypes {
94 fileRoutesByFullPath: FileRoutesByFullPath
95 fullPaths:
96 | '/'
97 | '/electric'
98 | '/query'
99 | '/trailbase'
100 | '/api/config'
101 | '/api/todos'
102 | '/api/config/$id'
103 | '/api/todos/$id'
104 fileRoutesByTo: FileRoutesByTo
105 to:
106 | '/'
107 | '/electric'
108 | '/query'
109 | '/trailbase'
110 | '/api/config'
111 | '/api/todos'
112 | '/api/config/$id'
113 | '/api/todos/$id'
114 id:
115 | '__root__'
116 | '/'
117 | '/electric'
118 | '/query'
119 | '/trailbase'
120 | '/api/config'
121 | '/api/todos'
122 | '/api/config/$id'
123 | '/api/todos/$id'
124 fileRoutesById: FileRoutesById
125}
126export interface RootRouteChildren {
127 IndexRoute: typeof IndexRoute
128 ElectricRoute: typeof ElectricRoute
129 QueryRoute: typeof QueryRoute
130 TrailbaseRoute: typeof TrailbaseRoute
131 ApiConfigRoute: typeof ApiConfigRouteWithChildren
132 ApiTodosRoute: typeof ApiTodosRouteWithChildren
133}
134
135declare module '@tanstack/react-router' {
136 interface FileRoutesByPath {
137 '/trailbase': {
138 id: '/trailbase'
139 path: '/trailbase'
140 fullPath: '/trailbase'
141 preLoaderRoute: typeof TrailbaseRouteImport
142 parentRoute: typeof rootRouteImport
143 }
144 '/query': {
145 id: '/query'
146 path: '/query'
147 fullPath: '/query'
148 preLoaderRoute: typeof QueryRouteImport
149 parentRoute: typeof rootRouteImport
150 }
151 '/electric': {
152 id: '/electric'
153 path: '/electric'
154 fullPath: '/electric'
155 preLoaderRoute: typeof ElectricRouteImport
156 parentRoute: typeof rootRouteImport
157 }
158 '/': {
159 id: '/'
160 path: '/'
161 fullPath: '/'
162 preLoaderRoute: typeof IndexRouteImport
163 parentRoute: typeof rootRouteImport
164 }
165 '/api/todos': {
166 id: '/api/todos'
167 path: '/api/todos'
168 fullPath: '/api/todos'
169 preLoaderRoute: typeof ApiTodosRouteImport
170 parentRoute: typeof rootRouteImport
171 }
172 '/api/config': {
173 id: '/api/config'
174 path: '/api/config'
175 fullPath: '/api/config'
176 preLoaderRoute: typeof ApiConfigRouteImport
177 parentRoute: typeof rootRouteImport
178 }
179 '/api/todos/$id': {
180 id: '/api/todos/$id'
181 path: '/$id'
182 fullPath: '/api/todos/$id'
183 preLoaderRoute: typeof ApiTodosIdRouteImport
184 parentRoute: typeof ApiTodosRoute
185 }
186 '/api/config/$id': {
187 id: '/api/config/$id'
188 path: '/$id'
189 fullPath: '/api/config/$id'
190 preLoaderRoute: typeof ApiConfigIdRouteImport
191 parentRoute: typeof ApiConfigRoute
192 }
193 }
194}
195
196interface ApiConfigRouteChildren {
197 ApiConfigIdRoute: typeof ApiConfigIdRoute
198}
199
200const ApiConfigRouteChildren: ApiConfigRouteChildren = {
201 ApiConfigIdRoute: ApiConfigIdRoute,
202}
203
204const ApiConfigRouteWithChildren = ApiConfigRoute._addFileChildren(
205 ApiConfigRouteChildren,
206)
207
208interface ApiTodosRouteChildren {
209 ApiTodosIdRoute: typeof ApiTodosIdRoute
210}
211
212const ApiTodosRouteChildren: ApiTodosRouteChildren = {
213 ApiTodosIdRoute: ApiTodosIdRoute,
214}
215
216const ApiTodosRouteWithChildren = ApiTodosRoute._addFileChildren(
217 ApiTodosRouteChildren,
218)
219
220const rootRouteChildren: RootRouteChildren = {
221 IndexRoute: IndexRoute,
222 ElectricRoute: ElectricRoute,
223 QueryRoute: QueryRoute,
224 TrailbaseRoute: TrailbaseRoute,
225 ApiConfigRoute: ApiConfigRouteWithChildren,
226 ApiTodosRoute: ApiTodosRouteWithChildren,
227}
228export const routeTree = rootRouteImport
229 ._addFileChildren(rootRouteChildren)
230 ._addFileTypes<FileRouteTypes>()
231
232import type { getRouter } from './router.tsx'
233import type { startInstance } from './start.tsx'
234declare module '@tanstack/react-start' {
235 interface Register {
236 ssr: true
237 router: Awaited<ReturnType<typeof getRouter>>
238 config: Awaited<ReturnType<typeof startInstance.getOptions>>
239 }
240}