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