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 IndexRouteImport } from './routes/index'
13import { Route as LayoutRouteImport } from './routes/_layout'
14import { Route as DeferredRouteImport } from './routes/deferred'
15import { Route as PostsRouteImport } from './routes/posts'
16import { Route as RedirectRouteImport } from './routes/redirect'
17import { Route as SuspenseTransitionRouteImport } from './routes/suspense-transition'
18import { Route as UsersRouteImport } from './routes/users'
19import { Route as LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
20import { Route as ApiUsersRouteImport } from './routes/api.users'
21import { Route as PostsIndexRouteImport } from './routes/posts.index'
22import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
23import { Route as UsersIndexRouteImport } from './routes/users.index'
24import { Route as UsersUserIdRouteImport } from './routes/users.$userId'
25import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
26import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
27import { Route as ApiUsersIdRouteImport } from './routes/api/users.$id'
28import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
29import { Route as TransitionCountQueryRouteImport } from './routes/transition/count/query'
30β
31const IndexRoute = IndexRouteImport.update({
32 id: '/',
33 path: '/',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const LayoutRoute = LayoutRouteImport.update({
37 id: '/_layout',
38 getParentRoute: () => rootRouteImport,
39} as any)
40const DeferredRoute = DeferredRouteImport.update({
41 id: '/deferred',
42 path: '/deferred',
43 getParentRoute: () => rootRouteImport,
44} as any)
45const PostsRoute = PostsRouteImport.update({
46 id: '/posts',
47 path: '/posts',
48 getParentRoute: () => rootRouteImport,
49} as any)
50const RedirectRoute = RedirectRouteImport.update({
51 id: '/redirect',
52 path: '/redirect',
53 getParentRoute: () => rootRouteImport,
54} as any)
55const SuspenseTransitionRoute = SuspenseTransitionRouteImport.update({
56 id: '/suspense-transition',
57 path: '/suspense-transition',
58 getParentRoute: () => rootRouteImport,
59} as any)
60const UsersRoute = UsersRouteImport.update({
61 id: '/users',
62 path: '/users',
63 getParentRoute: () => rootRouteImport,
64} as any)
65const LayoutLayout2Route = LayoutLayout2RouteImport.update({
66 id: '/_layout-2',
67 getParentRoute: () => LayoutRoute,
68} as any)
69const ApiUsersRoute = ApiUsersRouteImport.update({
70 id: '/api/users',
71 path: '/api/users',
72 getParentRoute: () => rootRouteImport,
73} as any)
74const PostsIndexRoute = PostsIndexRouteImport.update({
75 id: '/',
76 path: '/',
77 getParentRoute: () => PostsRoute,
78} as any)
79const PostsPostIdRoute = PostsPostIdRouteImport.update({
80 id: '/$postId',
81 path: '/$postId',
82 getParentRoute: () => PostsRoute,
83} as any)
84const UsersIndexRoute = UsersIndexRouteImport.update({
85 id: '/',
86 path: '/',
87 getParentRoute: () => UsersRoute,
88} as any)
89const UsersUserIdRoute = UsersUserIdRouteImport.update({
90 id: '/$userId',
91 path: '/$userId',
92 getParentRoute: () => UsersRoute,
93} as any)
94const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
95 id: '/layout-a',
96 path: '/layout-a',
97 getParentRoute: () => LayoutLayout2Route,
98} as any)
99const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBRouteImport.update({
100 id: '/layout-b',
101 path: '/layout-b',
102 getParentRoute: () => LayoutLayout2Route,
103} as any)
104const ApiUsersIdRoute = ApiUsersIdRouteImport.update({
105 id: '/$id',
106 path: '/$id',
107 getParentRoute: () => ApiUsersRoute,
108} as any)
109const PostsPostIdDeepRoute = PostsPostIdDeepRouteImport.update({
110 id: '/posts_/$postId/deep',
111 path: '/posts/$postId/deep',
112 getParentRoute: () => rootRouteImport,
113} as any)
114const TransitionCountQueryRoute = TransitionCountQueryRouteImport.update({
115 id: '/transition/count/query',
116 path: '/transition/count/query',
117 getParentRoute: () => rootRouteImport,
118} as any)
119β
120export interface FileRoutesByFullPath {
121 '/': typeof IndexRoute
122 '/deferred': typeof DeferredRoute
123 '/posts': typeof PostsRouteWithChildren
124 '/redirect': typeof RedirectRoute
125 '/suspense-transition': typeof SuspenseTransitionRoute
126 '/users': typeof UsersRouteWithChildren
127 '/api/users': typeof ApiUsersRouteWithChildren
128 '/posts/$postId': typeof PostsPostIdRoute
129 '/users/$userId': typeof UsersUserIdRoute
130 '/posts/': typeof PostsIndexRoute
131 '/users/': typeof UsersIndexRoute
132 '/layout-a': typeof LayoutLayout2LayoutARoute
133 '/layout-b': typeof LayoutLayout2LayoutBRoute
134 '/api/users/$id': typeof ApiUsersIdRoute
135 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
136 '/transition/count/query': typeof TransitionCountQueryRoute
137}
138export interface FileRoutesByTo {
139 '/': typeof IndexRoute
140 '/deferred': typeof DeferredRoute
141 '/redirect': typeof RedirectRoute
142 '/suspense-transition': typeof SuspenseTransitionRoute
143 '/api/users': typeof ApiUsersRouteWithChildren
144 '/posts/$postId': typeof PostsPostIdRoute
145 '/users/$userId': typeof UsersUserIdRoute
146 '/posts': typeof PostsIndexRoute
147 '/users': typeof UsersIndexRoute
148 '/layout-a': typeof LayoutLayout2LayoutARoute
149 '/layout-b': typeof LayoutLayout2LayoutBRoute
150 '/api/users/$id': typeof ApiUsersIdRoute
151 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
152 '/transition/count/query': typeof TransitionCountQueryRoute
153}
154export interface FileRoutesById {
155 __root__: typeof rootRouteImport
156 '/': typeof IndexRoute
157 '/_layout': typeof LayoutRouteWithChildren
158 '/deferred': typeof DeferredRoute
159 '/posts': typeof PostsRouteWithChildren
160 '/redirect': typeof RedirectRoute
161 '/suspense-transition': typeof SuspenseTransitionRoute
162 '/users': typeof UsersRouteWithChildren
163 '/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren
164 '/api/users': typeof ApiUsersRouteWithChildren
165 '/posts/$postId': typeof PostsPostIdRoute
166 '/users/$userId': typeof UsersUserIdRoute
167 '/posts/': typeof PostsIndexRoute
168 '/users/': typeof UsersIndexRoute
169 '/_layout/_layout-2/layout-a': typeof LayoutLayout2LayoutARoute
170 '/_layout/_layout-2/layout-b': typeof LayoutLayout2LayoutBRoute
171 '/api/users/$id': typeof ApiUsersIdRoute
172 '/posts_/$postId/deep': typeof PostsPostIdDeepRoute
173 '/transition/count/query': typeof TransitionCountQueryRoute
174}
175export interface FileRouteTypes {
176 fileRoutesByFullPath: FileRoutesByFullPath
177 fullPaths:
178 | '/'
179 | '/deferred'
180 | '/posts'
181 | '/redirect'
182 | '/suspense-transition'
183 | '/users'
184 | '/api/users'
185 | '/posts/$postId'
186 | '/users/$userId'
187 | '/posts/'
188 | '/users/'
189 | '/layout-a'
190 | '/layout-b'
191 | '/api/users/$id'
192 | '/posts/$postId/deep'
193 | '/transition/count/query'
194 fileRoutesByTo: FileRoutesByTo
195 to:
196 | '/'
197 | '/deferred'
198 | '/redirect'
199 | '/suspense-transition'
200 | '/api/users'
201 | '/posts/$postId'
202 | '/users/$userId'
203 | '/posts'
204 | '/users'
205 | '/layout-a'
206 | '/layout-b'
207 | '/api/users/$id'
208 | '/posts/$postId/deep'
209 | '/transition/count/query'
210 id:
211 | '__root__'
212 | '/'
213 | '/_layout'
214 | '/deferred'
215 | '/posts'
216 | '/redirect'
217 | '/suspense-transition'
218 | '/users'
219 | '/_layout/_layout-2'
220 | '/api/users'
221 | '/posts/$postId'
222 | '/users/$userId'
223 | '/posts/'
224 | '/users/'
225 | '/_layout/_layout-2/layout-a'
226 | '/_layout/_layout-2/layout-b'
227 | '/api/users/$id'
228 | '/posts_/$postId/deep'
229 | '/transition/count/query'
230 fileRoutesById: FileRoutesById
231}
232export interface RootRouteChildren {
233 IndexRoute: typeof IndexRoute
234 LayoutRoute: typeof LayoutRouteWithChildren
235 DeferredRoute: typeof DeferredRoute
236 PostsRoute: typeof PostsRouteWithChildren
237 RedirectRoute: typeof RedirectRoute
238 SuspenseTransitionRoute: typeof SuspenseTransitionRoute
239 UsersRoute: typeof UsersRouteWithChildren
240 ApiUsersRoute: typeof ApiUsersRouteWithChildren
241 PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
242 TransitionCountQueryRoute: typeof TransitionCountQueryRoute
243}
244β
245declare module '@tanstack/react-router' {
246 interface FileRoutesByPath {
247 '/': {
248 id: '/'
249 path: '/'
250 fullPath: '/'
251 preLoaderRoute: typeof IndexRouteImport
252 parentRoute: typeof rootRouteImport
253 }
254 '/_layout': {
255 id: '/_layout'
256 path: ''
257 fullPath: '/'
258 preLoaderRoute: typeof LayoutRouteImport
259 parentRoute: typeof rootRouteImport
260 }
261 '/deferred': {
262 id: '/deferred'
263 path: '/deferred'
264 fullPath: '/deferred'
265 preLoaderRoute: typeof DeferredRouteImport
266 parentRoute: typeof rootRouteImport
267 }
268 '/posts': {
269 id: '/posts'
270 path: '/posts'
271 fullPath: '/posts'
272 preLoaderRoute: typeof PostsRouteImport
273 parentRoute: typeof rootRouteImport
274 }
275 '/redirect': {
276 id: '/redirect'
277 path: '/redirect'
278 fullPath: '/redirect'
279 preLoaderRoute: typeof RedirectRouteImport
280 parentRoute: typeof rootRouteImport
281 }
282 '/suspense-transition': {
283 id: '/suspense-transition'
284 path: '/suspense-transition'
285 fullPath: '/suspense-transition'
286 preLoaderRoute: typeof SuspenseTransitionRouteImport
287 parentRoute: typeof rootRouteImport
288 }
289 '/users': {
290 id: '/users'
291 path: '/users'
292 fullPath: '/users'
293 preLoaderRoute: typeof UsersRouteImport
294 parentRoute: typeof rootRouteImport
295 }
296 '/_layout/_layout-2': {
297 id: '/_layout/_layout-2'
298 path: ''
299 fullPath: '/'
300 preLoaderRoute: typeof LayoutLayout2RouteImport
301 parentRoute: typeof LayoutRoute
302 }
303 '/api/users': {
304 id: '/api/users'
305 path: '/api/users'
306 fullPath: '/api/users'
307 preLoaderRoute: typeof ApiUsersRouteImport
308 parentRoute: typeof rootRouteImport
309 }
310 '/posts/': {
311 id: '/posts/'
312 path: '/'
313 fullPath: '/posts/'
314 preLoaderRoute: typeof PostsIndexRouteImport
315 parentRoute: typeof PostsRoute
316 }
317 '/posts/$postId': {
318 id: '/posts/$postId'
319 path: '/$postId'
320 fullPath: '/posts/$postId'
321 preLoaderRoute: typeof PostsPostIdRouteImport
322 parentRoute: typeof PostsRoute
323 }
324 '/users/': {
325 id: '/users/'
326 path: '/'
327 fullPath: '/users/'
328 preLoaderRoute: typeof UsersIndexRouteImport
329 parentRoute: typeof UsersRoute
330 }
331 '/users/$userId': {
332 id: '/users/$userId'
333 path: '/$userId'
334 fullPath: '/users/$userId'
335 preLoaderRoute: typeof UsersUserIdRouteImport
336 parentRoute: typeof UsersRoute
337 }
338 '/_layout/_layout-2/layout-a': {
339 id: '/_layout/_layout-2/layout-a'
340 path: '/layout-a'
341 fullPath: '/layout-a'
342 preLoaderRoute: typeof LayoutLayout2LayoutARouteImport
343 parentRoute: typeof LayoutLayout2Route
344 }
345 '/_layout/_layout-2/layout-b': {
346 id: '/_layout/_layout-2/layout-b'
347 path: '/layout-b'
348 fullPath: '/layout-b'
349 preLoaderRoute: typeof LayoutLayout2LayoutBRouteImport
350 parentRoute: typeof LayoutLayout2Route
351 }
352 '/api/users/$id': {
353 id: '/api/users/$id'
354 path: '/$id'
355 fullPath: '/api/users/$id'
356 preLoaderRoute: typeof ApiUsersIdRouteImport
357 parentRoute: typeof ApiUsersRoute
358 }
359 '/posts_/$postId/deep': {
360 id: '/posts_/$postId/deep'
361 path: '/posts/$postId/deep'
362 fullPath: '/posts/$postId/deep'
363 preLoaderRoute: typeof PostsPostIdDeepRouteImport
364 parentRoute: typeof rootRouteImport
365 }
366 '/transition/count/query': {
367 id: '/transition/count/query'
368 path: '/transition/count/query'
369 fullPath: '/transition/count/query'
370 preLoaderRoute: typeof TransitionCountQueryRouteImport
371 parentRoute: typeof rootRouteImport
372 }
373 }
374}
375β
376interface LayoutLayout2RouteChildren {
377 LayoutLayout2LayoutARoute: typeof LayoutLayout2LayoutARoute
378 LayoutLayout2LayoutBRoute: typeof LayoutLayout2LayoutBRoute
379}
380β
381const LayoutLayout2RouteChildren: LayoutLayout2RouteChildren = {
382 LayoutLayout2LayoutARoute: LayoutLayout2LayoutARoute,
383 LayoutLayout2LayoutBRoute: LayoutLayout2LayoutBRoute,
384}
385β
386const LayoutLayout2RouteWithChildren = LayoutLayout2Route._addFileChildren(
387 LayoutLayout2RouteChildren,
388)
389β
390interface LayoutRouteChildren {
391 LayoutLayout2Route: typeof LayoutLayout2RouteWithChildren
392}
393β
394const LayoutRouteChildren: LayoutRouteChildren = {
395 LayoutLayout2Route: LayoutLayout2RouteWithChildren,
396}
397β
398const LayoutRouteWithChildren =
399 LayoutRoute._addFileChildren(LayoutRouteChildren)
400β
401interface PostsRouteChildren {
402 PostsPostIdRoute: typeof PostsPostIdRoute
403 PostsIndexRoute: typeof PostsIndexRoute
404}
405β
406const PostsRouteChildren: PostsRouteChildren = {
407 PostsPostIdRoute: PostsPostIdRoute,
408 PostsIndexRoute: PostsIndexRoute,
409}
410β
411const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
412β
413interface UsersRouteChildren {
414 UsersUserIdRoute: typeof UsersUserIdRoute
415 UsersIndexRoute: typeof UsersIndexRoute
416}
417β
418const UsersRouteChildren: UsersRouteChildren = {
419 UsersUserIdRoute: UsersUserIdRoute,
420 UsersIndexRoute: UsersIndexRoute,
421}
422β
423const UsersRouteWithChildren = UsersRoute._addFileChildren(UsersRouteChildren)
424β
425interface ApiUsersRouteChildren {
426 ApiUsersIdRoute: typeof ApiUsersIdRoute
427}
428β
429const ApiUsersRouteChildren: ApiUsersRouteChildren = {
430 ApiUsersIdRoute: ApiUsersIdRoute,
431}
432β
433const ApiUsersRouteWithChildren = ApiUsersRoute._addFileChildren(
434 ApiUsersRouteChildren,
435)
436β
437const rootRouteChildren: RootRouteChildren = {
438 IndexRoute: IndexRoute,
439 LayoutRoute: LayoutRouteWithChildren,
440 DeferredRoute: DeferredRoute,
441 PostsRoute: PostsRouteWithChildren,
442 RedirectRoute: RedirectRoute,
443 SuspenseTransitionRoute: SuspenseTransitionRoute,
444 UsersRoute: UsersRouteWithChildren,
445 ApiUsersRoute: ApiUsersRouteWithChildren,
446 PostsPostIdDeepRoute: PostsPostIdDeepRoute,
447 TransitionCountQueryRoute: TransitionCountQueryRoute,
448}
449export const routeTree = rootRouteImport
450 ._addFileChildren(rootRouteChildren)
451 ._addFileTypes<FileRouteTypes>()
452β
453import type { getRouter } from './router.tsx'
454import type { createStart } from '@tanstack/react-start'
455declare module '@tanstack/react-start' {
456 interface Register {
457 ssr: true
458 router: Awaited<ReturnType<typeof getRouter>>
459 }
460}