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

routeTree.gen.ts

447 lines14.2 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 CustomScriptDotjsRouteImport } from './routes/customScript[.]js'
17import { Route as PathlessLayoutRouteImport } from './routes/_pathlessLayout'
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 PathlessLayoutNestedLayoutRouteImport } from './routes/_pathlessLayout/_nested-layout'
25import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
26import { Route as ApiUsersUserIdRouteImport } from './routes/api/users.$userId'
27import { Route as PathlessLayoutNestedLayoutRouteBRouteImport } from './routes/_pathlessLayout/_nested-layout/route-b'
28import { Route as PathlessLayoutNestedLayoutRouteARouteImport } from './routes/_pathlessLayout/_nested-layout/route-a'
29​
30const UsersRoute = UsersRouteImport.update({
31 id: '/users',
32 path: '/users',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const RedirectRoute = RedirectRouteImport.update({
36 id: '/redirect',
37 path: '/redirect',
38 getParentRoute: () => rootRouteImport,
39} as any)
40const PostsRoute = PostsRouteImport.update({
41 id: '/posts',
42 path: '/posts',
43 getParentRoute: () => rootRouteImport,
44} as any)
45const DeferredRoute = DeferredRouteImport.update({
46 id: '/deferred',
47 path: '/deferred',
48 getParentRoute: () => rootRouteImport,
49} as any)
50const CustomScriptDotjsRoute = CustomScriptDotjsRouteImport.update({
51 id: '/customScript.js',
52 path: '/customScript.js',
53 getParentRoute: () => rootRouteImport,
54} as any)
55const PathlessLayoutRoute = PathlessLayoutRouteImport.update({
56 id: '/_pathlessLayout',
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 PathlessLayoutNestedLayoutRoute =
90 PathlessLayoutNestedLayoutRouteImport.update({
91 id: '/_nested-layout',
92 getParentRoute: () => PathlessLayoutRoute,
93 } as any)
94const PostsPostIdDeepRoute = PostsPostIdDeepRouteImport.update({
95 id: '/posts_/$postId/deep',
96 path: '/posts/$postId/deep',
97 getParentRoute: () => rootRouteImport,
98} as any)
99const ApiUsersUserIdRoute = ApiUsersUserIdRouteImport.update({
100 id: '/$userId',
101 path: '/$userId',
102 getParentRoute: () => ApiUsersRoute,
103} as any)
104const PathlessLayoutNestedLayoutRouteBRoute =
105 PathlessLayoutNestedLayoutRouteBRouteImport.update({
106 id: '/route-b',
107 path: '/route-b',
108 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
109 } as any)
110const PathlessLayoutNestedLayoutRouteARoute =
111 PathlessLayoutNestedLayoutRouteARouteImport.update({
112 id: '/route-a',
113 path: '/route-a',
114 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
115 } as any)
116​
117export interface FileRoutesByFullPath {
118 '/': typeof IndexRoute
119 '/customScript.js': typeof CustomScriptDotjsRoute
120 '/deferred': typeof DeferredRoute
121 '/posts': typeof PostsRouteWithChildren
122 '/redirect': typeof RedirectRoute
123 '/users': typeof UsersRouteWithChildren
124 '/api/users': typeof ApiUsersRouteWithChildren
125 '/posts/$postId': typeof PostsPostIdRoute
126 '/users/$userId': typeof UsersUserIdRoute
127 '/posts/': typeof PostsIndexRoute
128 '/users/': typeof UsersIndexRoute
129 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
130 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
131 '/api/users/$userId': typeof ApiUsersUserIdRoute
132 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
134export interface FileRoutesByTo {
135 '/': typeof IndexRoute
136 '/customScript.js': typeof CustomScriptDotjsRoute
137 '/deferred': typeof DeferredRoute
138 '/redirect': typeof RedirectRoute
139 '/api/users': typeof ApiUsersRouteWithChildren
140 '/posts/$postId': typeof PostsPostIdRoute
141 '/users/$userId': typeof UsersUserIdRoute
142 '/posts': typeof PostsIndexRoute
143 '/users': typeof UsersIndexRoute
144 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
145 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
146 '/api/users/$userId': typeof ApiUsersUserIdRoute
147 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
149export interface FileRoutesById {
150 __root__: typeof rootRouteImport
151 '/': typeof IndexRoute
152 '/_pathlessLayout': typeof PathlessLayoutRouteWithChildren
153 '/customScript.js': typeof CustomScriptDotjsRoute
154 '/deferred': typeof DeferredRoute
155 '/posts': typeof PostsRouteWithChildren
156 '/redirect': typeof RedirectRoute
157 '/users': typeof UsersRouteWithChildren
158 '/_pathlessLayout/_nested-layout': typeof PathlessLayoutNestedLayoutRouteWithChildren
159 '/api/users': typeof ApiUsersRouteWithChildren
160 '/posts/$postId': typeof PostsPostIdRoute
161 '/users/$userId': typeof UsersUserIdRoute
162 '/posts/': typeof PostsIndexRoute
163 '/users/': typeof UsersIndexRoute
164 '/_pathlessLayout/_nested-layout/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
165 '/_pathlessLayout/_nested-layout/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
166 '/api/users/$userId': typeof ApiUsersUserIdRoute
167 '/posts_/$postId/deep': typeof PostsPostIdDeepRoute
169export interface FileRouteTypes {
170 fileRoutesByFullPath: FileRoutesByFullPath
171 fullPaths:
172 | '/'
173 | '/customScript.js'
174 | '/deferred'
175 | '/posts'
176 | '/redirect'
177 | '/users'
178 | '/api/users'
179 | '/posts/$postId'
180 | '/users/$userId'
181 | '/posts/'
182 | '/users/'
183 | '/route-a'
184 | '/route-b'
185 | '/api/users/$userId'
186 | '/posts/$postId/deep'
187 fileRoutesByTo: FileRoutesByTo
188 to:
189 | '/'
190 | '/customScript.js'
191 | '/deferred'
192 | '/redirect'
193 | '/api/users'
194 | '/posts/$postId'
195 | '/users/$userId'
196 | '/posts'
197 | '/users'
198 | '/route-a'
199 | '/route-b'
200 | '/api/users/$userId'
201 | '/posts/$postId/deep'
202 id:
203 | '__root__'
204 | '/'
205 | '/_pathlessLayout'
206 | '/customScript.js'
207 | '/deferred'
208 | '/posts'
209 | '/redirect'
210 | '/users'
211 | '/_pathlessLayout/_nested-layout'
212 | '/api/users'
213 | '/posts/$postId'
214 | '/users/$userId'
215 | '/posts/'
216 | '/users/'
217 | '/_pathlessLayout/_nested-layout/route-a'
218 | '/_pathlessLayout/_nested-layout/route-b'
219 | '/api/users/$userId'
220 | '/posts_/$postId/deep'
221 fileRoutesById: FileRoutesById
223export interface RootRouteChildren {
224 IndexRoute: typeof IndexRoute
225 PathlessLayoutRoute: typeof PathlessLayoutRouteWithChildren
226 CustomScriptDotjsRoute: typeof CustomScriptDotjsRoute
227 DeferredRoute: typeof DeferredRoute
228 PostsRoute: typeof PostsRouteWithChildren
229 RedirectRoute: typeof RedirectRoute
230 UsersRoute: typeof UsersRouteWithChildren
231 ApiUsersRoute: typeof ApiUsersRouteWithChildren
232 PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
234​
235declare module '@tanstack/react-router' {
236 interface FileRoutesByPath {
237 '/users': {
238 id: '/users'
239 path: '/users'
240 fullPath: '/users'
241 preLoaderRoute: typeof UsersRouteImport
242 parentRoute: typeof rootRouteImport
243 }
244 '/redirect': {
245 id: '/redirect'
246 path: '/redirect'
247 fullPath: '/redirect'
248 preLoaderRoute: typeof RedirectRouteImport
249 parentRoute: typeof rootRouteImport
250 }
251 '/posts': {
252 id: '/posts'
253 path: '/posts'
254 fullPath: '/posts'
255 preLoaderRoute: typeof PostsRouteImport
256 parentRoute: typeof rootRouteImport
257 }
258 '/deferred': {
259 id: '/deferred'
260 path: '/deferred'
261 fullPath: '/deferred'
262 preLoaderRoute: typeof DeferredRouteImport
263 parentRoute: typeof rootRouteImport
264 }
265 '/customScript.js': {
266 id: '/customScript.js'
267 path: '/customScript.js'
268 fullPath: '/customScript.js'
269 preLoaderRoute: typeof CustomScriptDotjsRouteImport
270 parentRoute: typeof rootRouteImport
271 }
272 '/_pathlessLayout': {
273 id: '/_pathlessLayout'
274 path: ''
275 fullPath: ''
276 preLoaderRoute: typeof PathlessLayoutRouteImport
277 parentRoute: typeof rootRouteImport
278 }
279 '/': {
280 id: '/'
281 path: '/'
282 fullPath: '/'
283 preLoaderRoute: typeof IndexRouteImport
284 parentRoute: typeof rootRouteImport
285 }
286 '/users/': {
287 id: '/users/'
288 path: '/'
289 fullPath: '/users/'
290 preLoaderRoute: typeof UsersIndexRouteImport
291 parentRoute: typeof UsersRoute
292 }
293 '/posts/': {
294 id: '/posts/'
295 path: '/'
296 fullPath: '/posts/'
297 preLoaderRoute: typeof PostsIndexRouteImport
298 parentRoute: typeof PostsRoute
299 }
300 '/users/$userId': {
301 id: '/users/$userId'
302 path: '/$userId'
303 fullPath: '/users/$userId'
304 preLoaderRoute: typeof UsersUserIdRouteImport
305 parentRoute: typeof UsersRoute
306 }
307 '/posts/$postId': {
308 id: '/posts/$postId'
309 path: '/$postId'
310 fullPath: '/posts/$postId'
311 preLoaderRoute: typeof PostsPostIdRouteImport
312 parentRoute: typeof PostsRoute
313 }
314 '/api/users': {
315 id: '/api/users'
316 path: '/api/users'
317 fullPath: '/api/users'
318 preLoaderRoute: typeof ApiUsersRouteImport
319 parentRoute: typeof rootRouteImport
320 }
321 '/_pathlessLayout/_nested-layout': {
322 id: '/_pathlessLayout/_nested-layout'
323 path: ''
324 fullPath: ''
325 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteImport
326 parentRoute: typeof PathlessLayoutRoute
327 }
328 '/posts_/$postId/deep': {
329 id: '/posts_/$postId/deep'
330 path: '/posts/$postId/deep'
331 fullPath: '/posts/$postId/deep'
332 preLoaderRoute: typeof PostsPostIdDeepRouteImport
333 parentRoute: typeof rootRouteImport
334 }
335 '/api/users/$userId': {
336 id: '/api/users/$userId'
337 path: '/$userId'
338 fullPath: '/api/users/$userId'
339 preLoaderRoute: typeof ApiUsersUserIdRouteImport
340 parentRoute: typeof ApiUsersRoute
341 }
342 '/_pathlessLayout/_nested-layout/route-b': {
343 id: '/_pathlessLayout/_nested-layout/route-b'
344 path: '/route-b'
345 fullPath: '/route-b'
346 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteBRouteImport
347 parentRoute: typeof PathlessLayoutNestedLayoutRoute
348 }
349 '/_pathlessLayout/_nested-layout/route-a': {
350 id: '/_pathlessLayout/_nested-layout/route-a'
351 path: '/route-a'
352 fullPath: '/route-a'
353 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteARouteImport
354 parentRoute: typeof PathlessLayoutNestedLayoutRoute
355 }
356 }
358​
359interface PathlessLayoutNestedLayoutRouteChildren {
360 PathlessLayoutNestedLayoutRouteARoute: typeof PathlessLayoutNestedLayoutRouteARoute
361 PathlessLayoutNestedLayoutRouteBRoute: typeof PathlessLayoutNestedLayoutRouteBRoute
363​
364const PathlessLayoutNestedLayoutRouteChildren: PathlessLayoutNestedLayoutRouteChildren =
365 {
366 PathlessLayoutNestedLayoutRouteARoute:
367 PathlessLayoutNestedLayoutRouteARoute,
368 PathlessLayoutNestedLayoutRouteBRoute:
369 PathlessLayoutNestedLayoutRouteBRoute,
370 }
371​
372const PathlessLayoutNestedLayoutRouteWithChildren =
373 PathlessLayoutNestedLayoutRoute._addFileChildren(
374 PathlessLayoutNestedLayoutRouteChildren,
375 )
376​
377interface PathlessLayoutRouteChildren {
378 PathlessLayoutNestedLayoutRoute: typeof PathlessLayoutNestedLayoutRouteWithChildren
380​
381const PathlessLayoutRouteChildren: PathlessLayoutRouteChildren = {
382 PathlessLayoutNestedLayoutRoute: PathlessLayoutNestedLayoutRouteWithChildren,
384​
385const PathlessLayoutRouteWithChildren = PathlessLayoutRoute._addFileChildren(
386 PathlessLayoutRouteChildren,
388​
389interface PostsRouteChildren {
390 PostsPostIdRoute: typeof PostsPostIdRoute
391 PostsIndexRoute: typeof PostsIndexRoute
393​
394const PostsRouteChildren: PostsRouteChildren = {
395 PostsPostIdRoute: PostsPostIdRoute,
396 PostsIndexRoute: PostsIndexRoute,
398​
399const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
400​
401interface UsersRouteChildren {
402 UsersUserIdRoute: typeof UsersUserIdRoute
403 UsersIndexRoute: typeof UsersIndexRoute
405​
406const UsersRouteChildren: UsersRouteChildren = {
407 UsersUserIdRoute: UsersUserIdRoute,
408 UsersIndexRoute: UsersIndexRoute,
410​
411const UsersRouteWithChildren = UsersRoute._addFileChildren(UsersRouteChildren)
412​
413interface ApiUsersRouteChildren {
414 ApiUsersUserIdRoute: typeof ApiUsersUserIdRoute
416​
417const ApiUsersRouteChildren: ApiUsersRouteChildren = {
418 ApiUsersUserIdRoute: ApiUsersUserIdRoute,
420​
421const ApiUsersRouteWithChildren = ApiUsersRoute._addFileChildren(
422 ApiUsersRouteChildren,
424​
425const rootRouteChildren: RootRouteChildren = {
426 IndexRoute: IndexRoute,
427 PathlessLayoutRoute: PathlessLayoutRouteWithChildren,
428 CustomScriptDotjsRoute: CustomScriptDotjsRoute,
429 DeferredRoute: DeferredRoute,
430 PostsRoute: PostsRouteWithChildren,
431 RedirectRoute: RedirectRoute,
432 UsersRoute: UsersRouteWithChildren,
433 ApiUsersRoute: ApiUsersRouteWithChildren,
434 PostsPostIdDeepRoute: PostsPostIdDeepRoute,
436export const routeTree = rootRouteImport
437 ._addFileChildren(rootRouteChildren)
438 ._addFileTypes<FileRouteTypes>()
439​
440import type { getRouter } from './router.tsx'
441import type { createStart } from '@tanstack/react-start'
442declare module '@tanstack/react-start' {
443 interface Register {
444 ssr: true
445 router: Awaited<ReturnType<typeof getRouter>>
446 }