Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

routeTree.gen.ts

471 lines14.3 KB

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