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

routeTree.gen.ts

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