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 UsersRouteImport } from './routes/users'
13import { Route as SuspenseTransitionRouteImport } from './routes/suspense-transition'
14import { Route as RedirectRouteImport } from './routes/redirect'
15import { Route as PostsRouteImport } from './routes/posts'
16import { Route as DeferredRouteImport } from './routes/deferred'
17import { Route as LayoutRouteImport } from './routes/_layout'
18import { Route as IndexRouteImport } from './routes/index'
19import { Route as UsersIndexRouteImport } from './routes/users.index'
20import { Route as PostsIndexRouteImport } from './routes/posts.index'
21import { Route as UsersUserIdRouteImport } from './routes/users.$userId'
22import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
23import { Route as ApiUsersRouteImport } from './routes/api.users'
24import { Route as LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
25import { Route as TransitionCountQueryRouteImport } from './routes/transition/count/query'
26import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
27import { Route as ApiUsersIdRouteImport } from './routes/api/users.$id'
28import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
29import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
30β
31const UsersRoute = UsersRouteImport.update({
32 id: '/users',
33 path: '/users',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const SuspenseTransitionRoute = SuspenseTransitionRouteImport.update({
37 id: '/suspense-transition',
38 path: '/suspense-transition',
39 getParentRoute: () => rootRouteImport,
40} as any)
41const RedirectRoute = RedirectRouteImport.update({
42 id: '/redirect',
43 path: '/redirect',
44 getParentRoute: () => rootRouteImport,
45} as any)
46const PostsRoute = PostsRouteImport.update({
47 id: '/posts',
48 path: '/posts',
49 getParentRoute: () => rootRouteImport,
50} as any)
51const DeferredRoute = DeferredRouteImport.update({
52 id: '/deferred',
53 path: '/deferred',
54 getParentRoute: () => rootRouteImport,
55} as any)
56const LayoutRoute = LayoutRouteImport.update({
57 id: '/_layout',
58 getParentRoute: () => rootRouteImport,
59} as any)
60const IndexRoute = IndexRouteImport.update({
61 id: '/',
62 path: '/',
63 getParentRoute: () => rootRouteImport,
64} as any)
65const UsersIndexRoute = UsersIndexRouteImport.update({
66 id: '/',
67 path: '/',
68 getParentRoute: () => UsersRoute,
69} as any)
70const PostsIndexRoute = PostsIndexRouteImport.update({
71 id: '/',
72 path: '/',
73 getParentRoute: () => PostsRoute,
74} as any)
75const UsersUserIdRoute = UsersUserIdRouteImport.update({
76 id: '/$userId',
77 path: '/$userId',
78 getParentRoute: () => UsersRoute,
79} as any)
80const PostsPostIdRoute = PostsPostIdRouteImport.update({
81 id: '/$postId',
82 path: '/$postId',
83 getParentRoute: () => PostsRoute,
84} as any)
85const ApiUsersRoute = ApiUsersRouteImport.update({
86 id: '/api/users',
87 path: '/api/users',
88 getParentRoute: () => rootRouteImport,
89} as any)
90const LayoutLayout2Route = LayoutLayout2RouteImport.update({
91 id: '/_layout-2',
92 getParentRoute: () => LayoutRoute,
93} as any)
94const TransitionCountQueryRoute = TransitionCountQueryRouteImport.update({
95 id: '/transition/count/query',
96 path: '/transition/count/query',
97 getParentRoute: () => rootRouteImport,
98} as any)
99const PostsPostIdDeepRoute = PostsPostIdDeepRouteImport.update({
100 id: '/posts_/$postId/deep',
101 path: '/posts/$postId/deep',
102 getParentRoute: () => rootRouteImport,
103} as any)
104const ApiUsersIdRoute = ApiUsersIdRouteImport.update({
105 id: '/$id',
106 path: '/$id',
107 getParentRoute: () => ApiUsersRoute,
108} as any)
109const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBRouteImport.update({
110 id: '/layout-b',
111 path: '/layout-b',
112 getParentRoute: () => LayoutLayout2Route,
113} as any)
114const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
115 id: '/layout-a',
116 path: '/layout-a',
117 getParentRoute: () => LayoutLayout2Route,
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 '/users': {
248 id: '/users'
249 path: '/users'
250 fullPath: '/users'
251 preLoaderRoute: typeof UsersRouteImport
252 parentRoute: typeof rootRouteImport
253 }
254 '/suspense-transition': {
255 id: '/suspense-transition'
256 path: '/suspense-transition'
257 fullPath: '/suspense-transition'
258 preLoaderRoute: typeof SuspenseTransitionRouteImport
259 parentRoute: typeof rootRouteImport
260 }
261 '/redirect': {
262 id: '/redirect'
263 path: '/redirect'
264 fullPath: '/redirect'
265 preLoaderRoute: typeof RedirectRouteImport
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 '/deferred': {
276 id: '/deferred'
277 path: '/deferred'
278 fullPath: '/deferred'
279 preLoaderRoute: typeof DeferredRouteImport
280 parentRoute: typeof rootRouteImport
281 }
282 '/_layout': {
283 id: '/_layout'
284 path: ''
285 fullPath: ''
286 preLoaderRoute: typeof LayoutRouteImport
287 parentRoute: typeof rootRouteImport
288 }
289 '/': {
290 id: '/'
291 path: '/'
292 fullPath: '/'
293 preLoaderRoute: typeof IndexRouteImport
294 parentRoute: typeof rootRouteImport
295 }
296 '/users/': {
297 id: '/users/'
298 path: '/'
299 fullPath: '/users/'
300 preLoaderRoute: typeof UsersIndexRouteImport
301 parentRoute: typeof UsersRoute
302 }
303 '/posts/': {
304 id: '/posts/'
305 path: '/'
306 fullPath: '/posts/'
307 preLoaderRoute: typeof PostsIndexRouteImport
308 parentRoute: typeof PostsRoute
309 }
310 '/users/$userId': {
311 id: '/users/$userId'
312 path: '/$userId'
313 fullPath: '/users/$userId'
314 preLoaderRoute: typeof UsersUserIdRouteImport
315 parentRoute: typeof UsersRoute
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 '/api/users': {
325 id: '/api/users'
326 path: '/api/users'
327 fullPath: '/api/users'
328 preLoaderRoute: typeof ApiUsersRouteImport
329 parentRoute: typeof rootRouteImport
330 }
331 '/_layout/_layout-2': {
332 id: '/_layout/_layout-2'
333 path: ''
334 fullPath: ''
335 preLoaderRoute: typeof LayoutLayout2RouteImport
336 parentRoute: typeof LayoutRoute
337 }
338 '/transition/count/query': {
339 id: '/transition/count/query'
340 path: '/transition/count/query'
341 fullPath: '/transition/count/query'
342 preLoaderRoute: typeof TransitionCountQueryRouteImport
343 parentRoute: typeof rootRouteImport
344 }
345 '/posts_/$postId/deep': {
346 id: '/posts_/$postId/deep'
347 path: '/posts/$postId/deep'
348 fullPath: '/posts/$postId/deep'
349 preLoaderRoute: typeof PostsPostIdDeepRouteImport
350 parentRoute: typeof rootRouteImport
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 '/_layout/_layout-2/layout-b': {
360 id: '/_layout/_layout-2/layout-b'
361 path: '/layout-b'
362 fullPath: '/layout-b'
363 preLoaderRoute: typeof LayoutLayout2LayoutBRouteImport
364 parentRoute: typeof LayoutLayout2Route
365 }
366 '/_layout/_layout-2/layout-a': {
367 id: '/_layout/_layout-2/layout-a'
368 path: '/layout-a'
369 fullPath: '/layout-a'
370 preLoaderRoute: typeof LayoutLayout2LayoutARouteImport
371 parentRoute: typeof LayoutLayout2Route
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}