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

routeTree.gen.ts

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