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

routeTree.gen.ts

317 lines10.6 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 { Route as rootRouteImport } from './routes/root'
12import { Route as homeRouteImport } from './routes/home'
13import { Route as layoutFirstLayoutRouteImport } from './routes/layout/first-layout'
14import { Route as postsPostsRouteImport } from './routes/posts/posts'
15import { Route as layoutSecondLayoutRouteImport } from './routes/layout/second-layout'
16import { Route as ClassicHelloRouteRouteImport } from './routes/file-based-subtree/hello/route'
17import { Route as postsPostsHomeRouteImport } from './routes/posts/posts-home'
18import { Route as postsPostsDetailRouteImport } from './routes/posts/posts-detail'
19import { Route as ClassicHelloIndexRouteImport } from './routes/file-based-subtree/hello/index'
20import { Route as ClassicHelloUniverseRouteImport } from './routes/file-based-subtree/hello/universe'
21import { Route as ClassicHelloWorldRouteImport } from './routes/file-based-subtree/hello/world'
22import { Route as aRouteImport } from './routes/a'
23import { Route as bRouteImport } from './routes/b'
24​
25const homeRoute = homeRouteImport.update({
26 id: '/',
27 path: '/',
28 getParentRoute: () => rootRouteImport,
29} as any)
30const layoutFirstLayoutRoute = layoutFirstLayoutRouteImport.update({
31 id: '/_first',
32 getParentRoute: () => rootRouteImport,
33} as any)
34const postsPostsRoute = postsPostsRouteImport.update({
35 id: '/posts',
36 path: '/posts',
37 getParentRoute: () => rootRouteImport,
38} as any)
39const layoutSecondLayoutRoute = layoutSecondLayoutRouteImport.update({
40 id: '/_second-layout',
41 getParentRoute: () => layoutFirstLayoutRoute,
42} as any)
43const ClassicHelloRouteRoute = ClassicHelloRouteRouteImport.update({
44 id: '/classic/hello',
45 path: '/classic/hello',
46 getParentRoute: () => rootRouteImport,
47} as any)
48const postsPostsHomeRoute = postsPostsHomeRouteImport.update({
49 id: '/',
50 path: '/',
51 getParentRoute: () => postsPostsRoute,
52} as any)
53const postsPostsDetailRoute = postsPostsDetailRouteImport.update({
54 id: '/$postId',
55 path: '/$postId',
56 getParentRoute: () => postsPostsRoute,
57} as any)
58const ClassicHelloIndexRoute = ClassicHelloIndexRouteImport.update({
59 id: '/',
60 path: '/',
61 getParentRoute: () => ClassicHelloRouteRoute,
62} as any)
63const ClassicHelloUniverseRoute = ClassicHelloUniverseRouteImport.update({
64 id: '/universe',
65 path: '/universe',
66 getParentRoute: () => ClassicHelloRouteRoute,
67} as any)
68const ClassicHelloWorldRoute = ClassicHelloWorldRouteImport.update({
69 id: '/world',
70 path: '/world',
71 getParentRoute: () => ClassicHelloRouteRoute,
72} as any)
73const aRoute = aRouteImport.update({
74 id: '/route-without-file/layout-a',
75 path: '/route-without-file/layout-a',
76 getParentRoute: () => layoutSecondLayoutRoute,
77} as any)
78const bRoute = bRouteImport.update({
79 id: '/route-without-file/layout-b',
80 path: '/route-without-file/layout-b',
81 getParentRoute: () => layoutSecondLayoutRoute,
82} as any)
83​
84export interface FileRoutesByFullPath {
85 '/': typeof homeRoute
86 '/posts': typeof postsPostsRouteWithChildren
87 '/classic/hello': typeof ClassicHelloRouteRouteWithChildren
88 '/posts/': typeof postsPostsHomeRoute
89 '/posts/$postId': typeof postsPostsDetailRoute
90 '/classic/hello/universe': typeof ClassicHelloUniverseRoute
91 '/classic/hello/world': typeof ClassicHelloWorldRoute
92 '/classic/hello/': typeof ClassicHelloIndexRoute
93 '/route-without-file/layout-a': typeof aRoute
94 '/route-without-file/layout-b': typeof bRoute
96export interface FileRoutesByTo {
97 '/': typeof homeRoute
98 '/posts': typeof postsPostsHomeRoute
99 '/posts/$postId': typeof postsPostsDetailRoute
100 '/classic/hello/universe': typeof ClassicHelloUniverseRoute
101 '/classic/hello/world': typeof ClassicHelloWorldRoute
102 '/classic/hello': typeof ClassicHelloIndexRoute
103 '/route-without-file/layout-a': typeof aRoute
104 '/route-without-file/layout-b': typeof bRoute
106export interface FileRoutesById {
107 __root__: typeof rootRouteImport
108 '/': typeof homeRoute
109 '/_first': typeof layoutFirstLayoutRouteWithChildren
110 '/posts': typeof postsPostsRouteWithChildren
111 '/classic/hello': typeof ClassicHelloRouteRouteWithChildren
112 '/posts/': typeof postsPostsHomeRoute
113 '/_first/_second-layout': typeof layoutSecondLayoutRouteWithChildren
114 '/posts/$postId': typeof postsPostsDetailRoute
115 '/classic/hello/universe': typeof ClassicHelloUniverseRoute
116 '/classic/hello/world': typeof ClassicHelloWorldRoute
117 '/classic/hello/': typeof ClassicHelloIndexRoute
118 '/_first/_second-layout/route-without-file/layout-a': typeof aRoute
119 '/_first/_second-layout/route-without-file/layout-b': typeof bRoute
121export interface FileRouteTypes {
122 fileRoutesByFullPath: FileRoutesByFullPath
123 fullPaths:
124 | '/'
125 | '/posts'
126 | '/classic/hello'
127 | '/posts/'
128 | '/posts/$postId'
129 | '/classic/hello/universe'
130 | '/classic/hello/world'
131 | '/classic/hello/'
132 | '/route-without-file/layout-a'
133 | '/route-without-file/layout-b'
134 fileRoutesByTo: FileRoutesByTo
135 to:
136 | '/'
137 | '/posts'
138 | '/posts/$postId'
139 | '/classic/hello/universe'
140 | '/classic/hello/world'
141 | '/classic/hello'
142 | '/route-without-file/layout-a'
143 | '/route-without-file/layout-b'
144 id:
145 | '__root__'
146 | '/'
147 | '/_first'
148 | '/posts'
149 | '/classic/hello'
150 | '/posts/'
151 | '/_first/_second-layout'
152 | '/posts/$postId'
153 | '/classic/hello/universe'
154 | '/classic/hello/world'
155 | '/classic/hello/'
156 | '/_first/_second-layout/route-without-file/layout-a'
157 | '/_first/_second-layout/route-without-file/layout-b'
158 fileRoutesById: FileRoutesById
160export interface RootRouteChildren {
161 homeRoute: typeof homeRoute
162 layoutFirstLayoutRoute: typeof layoutFirstLayoutRouteWithChildren
163 postsPostsRoute: typeof postsPostsRouteWithChildren
164 ClassicHelloRouteRoute: typeof ClassicHelloRouteRouteWithChildren
166​
167declare module '@tanstack/react-router' {
168 interface FileRoutesByPath {
169 '/': {
170 id: '/'
171 path: '/'
172 fullPath: '/'
173 preLoaderRoute: typeof homeRouteImport
174 parentRoute: typeof rootRouteImport
175 }
176 '/_first': {
177 id: '/_first'
178 path: ''
179 fullPath: '/'
180 preLoaderRoute: typeof layoutFirstLayoutRouteImport
181 parentRoute: typeof rootRouteImport
182 }
183 '/posts': {
184 id: '/posts'
185 path: '/posts'
186 fullPath: '/posts'
187 preLoaderRoute: typeof postsPostsRouteImport
188 parentRoute: typeof rootRouteImport
189 }
190 '/_first/_second-layout': {
191 id: '/_first/_second-layout'
192 path: ''
193 fullPath: '/'
194 preLoaderRoute: typeof layoutSecondLayoutRouteImport
195 parentRoute: typeof layoutFirstLayoutRoute
196 }
197 '/classic/hello': {
198 id: '/classic/hello'
199 path: '/classic/hello'
200 fullPath: '/classic/hello'
201 preLoaderRoute: typeof ClassicHelloRouteRouteImport
202 parentRoute: typeof rootRouteImport
203 }
204 '/posts/': {
205 id: '/posts/'
206 path: '/'
207 fullPath: '/posts/'
208 preLoaderRoute: typeof postsPostsHomeRouteImport
209 parentRoute: typeof postsPostsRoute
210 }
211 '/posts/$postId': {
212 id: '/posts/$postId'
213 path: '/$postId'
214 fullPath: '/posts/$postId'
215 preLoaderRoute: typeof postsPostsDetailRouteImport
216 parentRoute: typeof postsPostsRoute
217 }
218 '/classic/hello/': {
219 id: '/classic/hello/'
220 path: '/'
221 fullPath: '/classic/hello/'
222 preLoaderRoute: typeof ClassicHelloIndexRouteImport
223 parentRoute: typeof ClassicHelloRouteRoute
224 }
225 '/classic/hello/universe': {
226 id: '/classic/hello/universe'
227 path: '/universe'
228 fullPath: '/classic/hello/universe'
229 preLoaderRoute: typeof ClassicHelloUniverseRouteImport
230 parentRoute: typeof ClassicHelloRouteRoute
231 }
232 '/classic/hello/world': {
233 id: '/classic/hello/world'
234 path: '/world'
235 fullPath: '/classic/hello/world'
236 preLoaderRoute: typeof ClassicHelloWorldRouteImport
237 parentRoute: typeof ClassicHelloRouteRoute
238 }
239 '/_first/_second-layout/route-without-file/layout-a': {
240 id: '/_first/_second-layout/route-without-file/layout-a'
241 path: '/route-without-file/layout-a'
242 fullPath: '/route-without-file/layout-a'
243 preLoaderRoute: typeof aRouteImport
244 parentRoute: typeof layoutSecondLayoutRoute
245 }
246 '/_first/_second-layout/route-without-file/layout-b': {
247 id: '/_first/_second-layout/route-without-file/layout-b'
248 path: '/route-without-file/layout-b'
249 fullPath: '/route-without-file/layout-b'
250 preLoaderRoute: typeof bRouteImport
251 parentRoute: typeof layoutSecondLayoutRoute
252 }
253 }
255​
256interface layoutSecondLayoutRouteChildren {
257 aRoute: typeof aRoute
258 bRoute: typeof bRoute
260​
261const layoutSecondLayoutRouteChildren: layoutSecondLayoutRouteChildren = {
262 aRoute: aRoute,
263 bRoute: bRoute,
265​
266const layoutSecondLayoutRouteWithChildren =
267 layoutSecondLayoutRoute._addFileChildren(layoutSecondLayoutRouteChildren)
268​
269interface layoutFirstLayoutRouteChildren {
270 layoutSecondLayoutRoute: typeof layoutSecondLayoutRouteWithChildren
272​
273const layoutFirstLayoutRouteChildren: layoutFirstLayoutRouteChildren = {
274 layoutSecondLayoutRoute: layoutSecondLayoutRouteWithChildren,
276​
277const layoutFirstLayoutRouteWithChildren =
278 layoutFirstLayoutRoute._addFileChildren(layoutFirstLayoutRouteChildren)
279​
280interface postsPostsRouteChildren {
281 postsPostsHomeRoute: typeof postsPostsHomeRoute
282 postsPostsDetailRoute: typeof postsPostsDetailRoute
284​
285const postsPostsRouteChildren: postsPostsRouteChildren = {
286 postsPostsHomeRoute: postsPostsHomeRoute,
287 postsPostsDetailRoute: postsPostsDetailRoute,
289​
290const postsPostsRouteWithChildren = postsPostsRoute._addFileChildren(
291 postsPostsRouteChildren,
293​
294interface ClassicHelloRouteRouteChildren {
295 ClassicHelloUniverseRoute: typeof ClassicHelloUniverseRoute
296 ClassicHelloWorldRoute: typeof ClassicHelloWorldRoute
297 ClassicHelloIndexRoute: typeof ClassicHelloIndexRoute
299​
300const ClassicHelloRouteRouteChildren: ClassicHelloRouteRouteChildren = {
301 ClassicHelloUniverseRoute: ClassicHelloUniverseRoute,
302 ClassicHelloWorldRoute: ClassicHelloWorldRoute,
303 ClassicHelloIndexRoute: ClassicHelloIndexRoute,
305​
306const ClassicHelloRouteRouteWithChildren =
307 ClassicHelloRouteRoute._addFileChildren(ClassicHelloRouteRouteChildren)
308​
309const rootRouteChildren: RootRouteChildren = {
310 homeRoute: homeRoute,
311 layoutFirstLayoutRoute: layoutFirstLayoutRouteWithChildren,
312 postsPostsRoute: postsPostsRouteWithChildren,
313 ClassicHelloRouteRoute: ClassicHelloRouteRouteWithChildren,
315export const routeTree = rootRouteImport
316 ._addFileChildren(rootRouteChildren)
317 ._addFileTypes<FileRouteTypes>()