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 type { CreateFileRoute, FileRoutesByPath } from '@tanstack/react-router'
12β
13import { Route as rootRouteImport } from './routes/root'
14import { Route as postsPostsRouteImport } from './routes/posts/posts'
15import { Route as layoutFirstLayoutRouteImport } from './routes/layout/first-layout'
16import { Route as homeRouteImport } from './routes/home'
17import { Route as postsPostsDetailRouteImport } from './routes/posts/posts-detail'
18import { Route as layoutSecondLayoutRouteImport } from './routes/layout/second-layout'
19import { Route as postsPostsHomeRouteImport } from './routes/posts/posts-home'
20import { Route as ClassicHelloRouteRouteImport } from './routes/file-based-subtree/hello/route'
21import { Route as ClassicHelloIndexRouteImport } from './routes/file-based-subtree/hello/index'
22import { Route as ClassicHelloWorldRouteImport } from './routes/file-based-subtree/hello/world'
23import { Route as ClassicHelloUniverseRouteImport } from './routes/file-based-subtree/hello/universe'
24import { Route as bRouteImport } from './routes/b'
25import { Route as aRouteImport } from './routes/a'
26β
27const postsPostsRoute = postsPostsRouteImport.update({
28 id: '/posts',
29 path: '/posts',
30 getParentRoute: () => rootRouteImport,
31} as any)
32const layoutFirstLayoutRoute = layoutFirstLayoutRouteImport.update({
33 id: '/_first',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const homeRoute = homeRouteImport.update({
37 id: '/',
38 path: '/',
39 getParentRoute: () => rootRouteImport,
40} as any)
41const postsPostsDetailRoute = postsPostsDetailRouteImport.update({
42 id: '/$postId',
43 path: '/$postId',
44 getParentRoute: () => postsPostsRoute,
45} as any)
46const layoutSecondLayoutRoute = layoutSecondLayoutRouteImport.update({
47 id: '/_second-layout',
48 getParentRoute: () => layoutFirstLayoutRoute,
49} as any)
50const postsPostsHomeRoute = postsPostsHomeRouteImport.update({
51 id: '/',
52 path: '/',
53 getParentRoute: () => postsPostsRoute,
54} as any)
55const ClassicHelloRouteRoute = ClassicHelloRouteRouteImport.update({
56 id: '/classic/hello',
57 path: '/classic/hello',
58 getParentRoute: () => rootRouteImport,
59} as any)
60const ClassicHelloIndexRoute = ClassicHelloIndexRouteImport.update({
61 id: '/',
62 path: '/',
63 getParentRoute: () => ClassicHelloRouteRoute,
64} as any)
65const ClassicHelloWorldRoute = ClassicHelloWorldRouteImport.update({
66 id: '/world',
67 path: '/world',
68 getParentRoute: () => ClassicHelloRouteRoute,
69} as any)
70const ClassicHelloUniverseRoute = ClassicHelloUniverseRouteImport.update({
71 id: '/universe',
72 path: '/universe',
73 getParentRoute: () => ClassicHelloRouteRoute,
74} as any)
75const bRoute = bRouteImport.update({
76 id: '/route-without-file/layout-b',
77 path: '/route-without-file/layout-b',
78 getParentRoute: () => layoutSecondLayoutRoute,
79} as any)
80const aRoute = aRouteImport.update({
81 id: '/route-without-file/layout-a',
82 path: '/route-without-file/layout-a',
83 getParentRoute: () => layoutSecondLayoutRoute,
84} as any)
85β
86export interface FileRoutesByFullPath {
87 '/': typeof homeRoute
88 '/posts': typeof postsPostsRouteWithChildren
89 '/classic/hello': typeof ClassicHelloRouteRouteWithChildren
90 '/posts/': typeof postsPostsHomeRoute
91 '/posts/$postId': typeof postsPostsDetailRoute
92 '/classic/hello/universe': typeof ClassicHelloUniverseRoute
93 '/classic/hello/world': typeof ClassicHelloWorldRoute
94 '/classic/hello/': typeof ClassicHelloIndexRoute
95 '/route-without-file/layout-a': typeof aRoute
96 '/route-without-file/layout-b': typeof bRoute
97}
98export interface FileRoutesByTo {
99 '/': typeof homeRoute
100 '/posts': typeof postsPostsHomeRoute
101 '/posts/$postId': typeof postsPostsDetailRoute
102 '/classic/hello/universe': typeof ClassicHelloUniverseRoute
103 '/classic/hello/world': typeof ClassicHelloWorldRoute
104 '/classic/hello': typeof ClassicHelloIndexRoute
105 '/route-without-file/layout-a': typeof aRoute
106 '/route-without-file/layout-b': typeof bRoute
107}
108export interface FileRoutesById {
109 __root__: typeof rootRouteImport
110 '/': typeof homeRoute
111 '/_first': typeof layoutFirstLayoutRouteWithChildren
112 '/posts': typeof postsPostsRouteWithChildren
113 '/classic/hello': typeof ClassicHelloRouteRouteWithChildren
114 '/posts/': typeof postsPostsHomeRoute
115 '/_first/_second-layout': typeof layoutSecondLayoutRouteWithChildren
116 '/posts/$postId': typeof postsPostsDetailRoute
117 '/classic/hello/universe': typeof ClassicHelloUniverseRoute
118 '/classic/hello/world': typeof ClassicHelloWorldRoute
119 '/classic/hello/': typeof ClassicHelloIndexRoute
120 '/_first/_second-layout/route-without-file/layout-a': typeof aRoute
121 '/_first/_second-layout/route-without-file/layout-b': typeof bRoute
122}
123export interface FileRouteTypes {
124 fileRoutesByFullPath: FileRoutesByFullPath
125 fullPaths:
126 | '/'
127 | '/posts'
128 | '/classic/hello'
129 | '/posts/'
130 | '/posts/$postId'
131 | '/classic/hello/universe'
132 | '/classic/hello/world'
133 | '/classic/hello/'
134 | '/route-without-file/layout-a'
135 | '/route-without-file/layout-b'
136 fileRoutesByTo: FileRoutesByTo
137 to:
138 | '/'
139 | '/posts'
140 | '/posts/$postId'
141 | '/classic/hello/universe'
142 | '/classic/hello/world'
143 | '/classic/hello'
144 | '/route-without-file/layout-a'
145 | '/route-without-file/layout-b'
146 id:
147 | '__root__'
148 | '/'
149 | '/_first'
150 | '/posts'
151 | '/classic/hello'
152 | '/posts/'
153 | '/_first/_second-layout'
154 | '/posts/$postId'
155 | '/classic/hello/universe'
156 | '/classic/hello/world'
157 | '/classic/hello/'
158 | '/_first/_second-layout/route-without-file/layout-a'
159 | '/_first/_second-layout/route-without-file/layout-b'
160 fileRoutesById: FileRoutesById
161}
162export interface RootRouteChildren {
163 homeRoute: typeof homeRoute
164 layoutFirstLayoutRoute: typeof layoutFirstLayoutRouteWithChildren
165 postsPostsRoute: typeof postsPostsRouteWithChildren
166 ClassicHelloRouteRoute: typeof ClassicHelloRouteRouteWithChildren
167}
168β
169declare module '@tanstack/react-router' {
170 interface FileRoutesByPath {
171 '/posts': {
172 id: '/posts'
173 path: '/posts'
174 fullPath: '/posts'
175 preLoaderRoute: typeof postsPostsRouteImport
176 parentRoute: typeof rootRouteImport
177 }
178 '/_first': {
179 id: '/_first'
180 path: ''
181 fullPath: ''
182 preLoaderRoute: typeof layoutFirstLayoutRouteImport
183 parentRoute: typeof rootRouteImport
184 }
185 '/': {
186 id: '/'
187 path: '/'
188 fullPath: '/'
189 preLoaderRoute: typeof homeRouteImport
190 parentRoute: typeof rootRouteImport
191 }
192 '/posts/$postId': {
193 id: '/posts/$postId'
194 path: '/$postId'
195 fullPath: '/posts/$postId'
196 preLoaderRoute: typeof postsPostsDetailRouteImport
197 parentRoute: typeof postsPostsRoute
198 }
199 '/_first/_second-layout': {
200 id: '/_first/_second-layout'
201 path: ''
202 fullPath: ''
203 preLoaderRoute: typeof layoutSecondLayoutRouteImport
204 parentRoute: typeof layoutFirstLayoutRoute
205 }
206 '/posts/': {
207 id: '/posts/'
208 path: '/'
209 fullPath: '/posts/'
210 preLoaderRoute: typeof postsPostsHomeRouteImport
211 parentRoute: typeof postsPostsRoute
212 }
213 '/classic/hello': {
214 id: '/classic/hello'
215 path: '/classic/hello'
216 fullPath: '/classic/hello'
217 preLoaderRoute: typeof ClassicHelloRouteRouteImport
218 parentRoute: typeof rootRouteImport
219 }
220 '/classic/hello/': {
221 id: '/classic/hello/'
222 path: '/'
223 fullPath: '/classic/hello/'
224 preLoaderRoute: typeof ClassicHelloIndexRouteImport
225 parentRoute: typeof ClassicHelloRouteRoute
226 }
227 '/classic/hello/world': {
228 id: '/classic/hello/world'
229 path: '/world'
230 fullPath: '/classic/hello/world'
231 preLoaderRoute: typeof ClassicHelloWorldRouteImport
232 parentRoute: typeof ClassicHelloRouteRoute
233 }
234 '/classic/hello/universe': {
235 id: '/classic/hello/universe'
236 path: '/universe'
237 fullPath: '/classic/hello/universe'
238 preLoaderRoute: typeof ClassicHelloUniverseRouteImport
239 parentRoute: typeof ClassicHelloRouteRoute
240 }
241 '/_first/_second-layout/route-without-file/layout-b': {
242 id: '/_first/_second-layout/route-without-file/layout-b'
243 path: '/route-without-file/layout-b'
244 fullPath: '/route-without-file/layout-b'
245 preLoaderRoute: typeof bRouteImport
246 parentRoute: typeof layoutSecondLayoutRoute
247 }
248 '/_first/_second-layout/route-without-file/layout-a': {
249 id: '/_first/_second-layout/route-without-file/layout-a'
250 path: '/route-without-file/layout-a'
251 fullPath: '/route-without-file/layout-a'
252 preLoaderRoute: typeof aRouteImport
253 parentRoute: typeof layoutSecondLayoutRoute
254 }
255 }
256}
257β
258declare module './routes/home' {
259 const createFileRoute: CreateFileRoute<
260 '/',
261 FileRoutesByPath['/']['parentRoute'],
262 FileRoutesByPath['/']['id'],
263 FileRoutesByPath['/']['path'],
264 FileRoutesByPath['/']['fullPath']
265 >
266}
267declare module './routes/layout/first-layout' {
268 const createFileRoute: CreateFileRoute<
269 '/_first',
270 FileRoutesByPath['/_first']['parentRoute'],
271 FileRoutesByPath['/_first']['id'],
272 FileRoutesByPath['/_first']['path'],
273 FileRoutesByPath['/_first']['fullPath']
274 >
275}
276declare module './routes/posts/posts' {
277 const createFileRoute: CreateFileRoute<
278 '/posts',
279 FileRoutesByPath['/posts']['parentRoute'],
280 FileRoutesByPath['/posts']['id'],
281 FileRoutesByPath['/posts']['path'],
282 FileRoutesByPath['/posts']['fullPath']
283 >
284}
285declare module './routes/file-based-subtree/hello/route' {
286 const createFileRoute: CreateFileRoute<
287 '/classic/hello',
288 FileRoutesByPath['/classic/hello']['parentRoute'],
289 FileRoutesByPath['/classic/hello']['id'],
290 FileRoutesByPath['/classic/hello']['path'],
291 FileRoutesByPath['/classic/hello']['fullPath']
292 >
293}
294declare module './routes/posts/posts-home' {
295 const createFileRoute: CreateFileRoute<
296 '/posts/',
297 FileRoutesByPath['/posts/']['parentRoute'],
298 FileRoutesByPath['/posts/']['id'],
299 FileRoutesByPath['/posts/']['path'],
300 FileRoutesByPath['/posts/']['fullPath']
301 >
302}
303declare module './routes/layout/second-layout' {
304 const createFileRoute: CreateFileRoute<
305 '/_first/_second-layout',
306 FileRoutesByPath['/_first/_second-layout']['parentRoute'],
307 FileRoutesByPath['/_first/_second-layout']['id'],
308 FileRoutesByPath['/_first/_second-layout']['path'],
309 FileRoutesByPath['/_first/_second-layout']['fullPath']
310 >
311}
312declare module './routes/posts/posts-detail' {
313 const createFileRoute: CreateFileRoute<
314 '/posts/$postId',
315 FileRoutesByPath['/posts/$postId']['parentRoute'],
316 FileRoutesByPath['/posts/$postId']['id'],
317 FileRoutesByPath['/posts/$postId']['path'],
318 FileRoutesByPath['/posts/$postId']['fullPath']
319 >
320}
321declare module './routes/file-based-subtree/hello/universe' {
322 const createFileRoute: CreateFileRoute<
323 '/classic/hello/universe',
324 FileRoutesByPath['/classic/hello/universe']['parentRoute'],
325 FileRoutesByPath['/classic/hello/universe']['id'],
326 FileRoutesByPath['/classic/hello/universe']['path'],
327 FileRoutesByPath['/classic/hello/universe']['fullPath']
328 >
329}
330declare module './routes/file-based-subtree/hello/world' {
331 const createFileRoute: CreateFileRoute<
332 '/classic/hello/world',
333 FileRoutesByPath['/classic/hello/world']['parentRoute'],
334 FileRoutesByPath['/classic/hello/world']['id'],
335 FileRoutesByPath['/classic/hello/world']['path'],
336 FileRoutesByPath['/classic/hello/world']['fullPath']
337 >
338}
339declare module './routes/file-based-subtree/hello/index' {
340 const createFileRoute: CreateFileRoute<
341 '/classic/hello/',
342 FileRoutesByPath['/classic/hello/']['parentRoute'],
343 FileRoutesByPath['/classic/hello/']['id'],
344 FileRoutesByPath['/classic/hello/']['path'],
345 FileRoutesByPath['/classic/hello/']['fullPath']
346 >
347}
348declare module './routes/a' {
349 const createFileRoute: CreateFileRoute<
350 '/_first/_second-layout/route-without-file/layout-a',
351 FileRoutesByPath['/_first/_second-layout/route-without-file/layout-a']['parentRoute'],
352 FileRoutesByPath['/_first/_second-layout/route-without-file/layout-a']['id'],
353 FileRoutesByPath['/_first/_second-layout/route-without-file/layout-a']['path'],
354 FileRoutesByPath['/_first/_second-layout/route-without-file/layout-a']['fullPath']
355 >
356}
357declare module './routes/b' {
358 const createFileRoute: CreateFileRoute<
359 '/_first/_second-layout/route-without-file/layout-b',
360 FileRoutesByPath['/_first/_second-layout/route-without-file/layout-b']['parentRoute'],
361 FileRoutesByPath['/_first/_second-layout/route-without-file/layout-b']['id'],
362 FileRoutesByPath['/_first/_second-layout/route-without-file/layout-b']['path'],
363 FileRoutesByPath['/_first/_second-layout/route-without-file/layout-b']['fullPath']
364 >
365}
366β
367interface layoutSecondLayoutRouteChildren {
368 aRoute: typeof aRoute
369 bRoute: typeof bRoute
370}
371β
372const layoutSecondLayoutRouteChildren: layoutSecondLayoutRouteChildren = {
373 aRoute: aRoute,
374 bRoute: bRoute,
375}
376β
377const layoutSecondLayoutRouteWithChildren =
378 layoutSecondLayoutRoute._addFileChildren(layoutSecondLayoutRouteChildren)
379β
380interface layoutFirstLayoutRouteChildren {
381 layoutSecondLayoutRoute: typeof layoutSecondLayoutRouteWithChildren
382}
383β
384const layoutFirstLayoutRouteChildren: layoutFirstLayoutRouteChildren = {
385 layoutSecondLayoutRoute: layoutSecondLayoutRouteWithChildren,
386}
387β
388const layoutFirstLayoutRouteWithChildren =
389 layoutFirstLayoutRoute._addFileChildren(layoutFirstLayoutRouteChildren)
390β
391interface postsPostsRouteChildren {
392 postsPostsHomeRoute: typeof postsPostsHomeRoute
393 postsPostsDetailRoute: typeof postsPostsDetailRoute
394}
395β
396const postsPostsRouteChildren: postsPostsRouteChildren = {
397 postsPostsHomeRoute: postsPostsHomeRoute,
398 postsPostsDetailRoute: postsPostsDetailRoute,
399}
400β
401const postsPostsRouteWithChildren = postsPostsRoute._addFileChildren(
402 postsPostsRouteChildren,
403)
404β
405interface ClassicHelloRouteRouteChildren {
406 ClassicHelloUniverseRoute: typeof ClassicHelloUniverseRoute
407 ClassicHelloWorldRoute: typeof ClassicHelloWorldRoute
408 ClassicHelloIndexRoute: typeof ClassicHelloIndexRoute
409}
410β
411const ClassicHelloRouteRouteChildren: ClassicHelloRouteRouteChildren = {
412 ClassicHelloUniverseRoute: ClassicHelloUniverseRoute,
413 ClassicHelloWorldRoute: ClassicHelloWorldRoute,
414 ClassicHelloIndexRoute: ClassicHelloIndexRoute,
415}
416β
417const ClassicHelloRouteRouteWithChildren =
418 ClassicHelloRouteRoute._addFileChildren(ClassicHelloRouteRouteChildren)
419β
420const rootRouteChildren: RootRouteChildren = {
421 homeRoute: homeRoute,
422 layoutFirstLayoutRoute: layoutFirstLayoutRouteWithChildren,
423 postsPostsRoute: postsPostsRouteWithChildren,
424 ClassicHelloRouteRoute: ClassicHelloRouteRouteWithChildren,
425}
426export const routeTree = rootRouteImport
427 ._addFileChildren(rootRouteChildren)
428 ._addFileTypes<FileRouteTypes>()