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

routeTree.gen.ts

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