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

routeTree.gen.ts

439 lines13.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 UsersRouteImport } from './routes/users'
13import { Route as SuspenseTransitionRouteImport } from './routes/suspense-transition'
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 TransitionCountQueryRouteImport } from './routes/transition/count/query'
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 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 LayoutRoute = LayoutRouteImport.update({
51 id: '/_layout',
52 getParentRoute: () => rootRouteImport,
53} as any)
54const IndexRoute = IndexRouteImport.update({
55 id: '/',
56 path: '/',
57 getParentRoute: () => rootRouteImport,
58} as any)
59const UsersIndexRoute = UsersIndexRouteImport.update({
60 id: '/',
61 path: '/',
62 getParentRoute: () => UsersRoute,
63} as any)
64const PostsIndexRoute = PostsIndexRouteImport.update({
65 id: '/',
66 path: '/',
67 getParentRoute: () => PostsRoute,
68} as any)
69const UsersUserIdRoute = UsersUserIdRouteImport.update({
70 id: '/$userId',
71 path: '/$userId',
72 getParentRoute: () => UsersRoute,
73} as any)
74const PostsPostIdRoute = PostsPostIdRouteImport.update({
75 id: '/$postId',
76 path: '/$postId',
77 getParentRoute: () => PostsRoute,
78} as any)
79const ApiUsersRoute = ApiUsersRouteImport.update({
80 id: '/api/users',
81 path: '/api/users',
82 getParentRoute: () => rootRouteImport,
83} as any)
84const LayoutLayout2Route = LayoutLayout2RouteImport.update({
85 id: '/_layout-2',
86 getParentRoute: () => LayoutRoute,
87} as any)
88const TransitionCountQueryRoute = TransitionCountQueryRouteImport.update({
89 id: '/transition/count/query',
90 path: '/transition/count/query',
91 getParentRoute: () => rootRouteImport,
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 '/suspense-transition': typeof SuspenseTransitionRoute
119 '/users': typeof UsersRouteWithChildren
120 '/api/users': typeof ApiUsersRouteWithChildren
121 '/posts/$postId': typeof PostsPostIdRoute
122 '/users/$userId': typeof UsersUserIdRoute
123 '/posts/': typeof PostsIndexRoute
124 '/users/': typeof UsersIndexRoute
125 '/layout-a': typeof LayoutLayout2LayoutARoute
126 '/layout-b': typeof LayoutLayout2LayoutBRoute
127 '/api/users/$id': typeof ApiUsersIdRoute
128 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
129 '/transition/count/query': typeof TransitionCountQueryRoute
131export interface FileRoutesByTo {
132 '/': typeof IndexRoute
133 '/deferred': typeof DeferredRoute
134 '/suspense-transition': typeof SuspenseTransitionRoute
135 '/api/users': typeof ApiUsersRouteWithChildren
136 '/posts/$postId': typeof PostsPostIdRoute
137 '/users/$userId': typeof UsersUserIdRoute
138 '/posts': typeof PostsIndexRoute
139 '/users': typeof UsersIndexRoute
140 '/layout-a': typeof LayoutLayout2LayoutARoute
141 '/layout-b': typeof LayoutLayout2LayoutBRoute
142 '/api/users/$id': typeof ApiUsersIdRoute
143 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
144 '/transition/count/query': typeof TransitionCountQueryRoute
146export interface FileRoutesById {
147 __root__: typeof rootRouteImport
148 '/': typeof IndexRoute
149 '/_layout': typeof LayoutRouteWithChildren
150 '/deferred': typeof DeferredRoute
151 '/posts': typeof PostsRouteWithChildren
152 '/suspense-transition': typeof SuspenseTransitionRoute
153 '/users': typeof UsersRouteWithChildren
154 '/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren
155 '/api/users': typeof ApiUsersRouteWithChildren
156 '/posts/$postId': typeof PostsPostIdRoute
157 '/users/$userId': typeof UsersUserIdRoute
158 '/posts/': typeof PostsIndexRoute
159 '/users/': typeof UsersIndexRoute
160 '/_layout/_layout-2/layout-a': typeof LayoutLayout2LayoutARoute
161 '/_layout/_layout-2/layout-b': typeof LayoutLayout2LayoutBRoute
162 '/api/users/$id': typeof ApiUsersIdRoute
163 '/posts_/$postId/deep': typeof PostsPostIdDeepRoute
164 '/transition/count/query': typeof TransitionCountQueryRoute
166export interface FileRouteTypes {
167 fileRoutesByFullPath: FileRoutesByFullPath
168 fullPaths:
169 | '/'
170 | '/deferred'
171 | '/posts'
172 | '/suspense-transition'
173 | '/users'
174 | '/api/users'
175 | '/posts/$postId'
176 | '/users/$userId'
177 | '/posts/'
178 | '/users/'
179 | '/layout-a'
180 | '/layout-b'
181 | '/api/users/$id'
182 | '/posts/$postId/deep'
183 | '/transition/count/query'
184 fileRoutesByTo: FileRoutesByTo
185 to:
186 | '/'
187 | '/deferred'
188 | '/suspense-transition'
189 | '/api/users'
190 | '/posts/$postId'
191 | '/users/$userId'
192 | '/posts'
193 | '/users'
194 | '/layout-a'
195 | '/layout-b'
196 | '/api/users/$id'
197 | '/posts/$postId/deep'
198 | '/transition/count/query'
199 id:
200 | '__root__'
201 | '/'
202 | '/_layout'
203 | '/deferred'
204 | '/posts'
205 | '/suspense-transition'
206 | '/users'
207 | '/_layout/_layout-2'
208 | '/api/users'
209 | '/posts/$postId'
210 | '/users/$userId'
211 | '/posts/'
212 | '/users/'
213 | '/_layout/_layout-2/layout-a'
214 | '/_layout/_layout-2/layout-b'
215 | '/api/users/$id'
216 | '/posts_/$postId/deep'
217 | '/transition/count/query'
218 fileRoutesById: FileRoutesById
220export interface RootRouteChildren {
221 IndexRoute: typeof IndexRoute
222 LayoutRoute: typeof LayoutRouteWithChildren
223 DeferredRoute: typeof DeferredRoute
224 PostsRoute: typeof PostsRouteWithChildren
225 SuspenseTransitionRoute: typeof SuspenseTransitionRoute
226 UsersRoute: typeof UsersRouteWithChildren
227 ApiUsersRoute: typeof ApiUsersRouteWithChildren
228 PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
229 TransitionCountQueryRoute: typeof TransitionCountQueryRoute
231​
232declare module '@tanstack/solid-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 '/posts': {
249 id: '/posts'
250 path: '/posts'
251 fullPath: '/posts'
252 preLoaderRoute: typeof PostsRouteImport
253 parentRoute: typeof rootRouteImport
254 }
255 '/deferred': {
256 id: '/deferred'
257 path: '/deferred'
258 fullPath: '/deferred'
259 preLoaderRoute: typeof DeferredRouteImport
260 parentRoute: typeof rootRouteImport
261 }
262 '/_layout': {
263 id: '/_layout'
264 path: ''
265 fullPath: ''
266 preLoaderRoute: typeof LayoutRouteImport
267 parentRoute: typeof rootRouteImport
268 }
269 '/': {
270 id: '/'
271 path: '/'
272 fullPath: '/'
273 preLoaderRoute: typeof IndexRouteImport
274 parentRoute: typeof rootRouteImport
275 }
276 '/users/': {
277 id: '/users/'
278 path: '/'
279 fullPath: '/users/'
280 preLoaderRoute: typeof UsersIndexRouteImport
281 parentRoute: typeof UsersRoute
282 }
283 '/posts/': {
284 id: '/posts/'
285 path: '/'
286 fullPath: '/posts/'
287 preLoaderRoute: typeof PostsIndexRouteImport
288 parentRoute: typeof PostsRoute
289 }
290 '/users/$userId': {
291 id: '/users/$userId'
292 path: '/$userId'
293 fullPath: '/users/$userId'
294 preLoaderRoute: typeof UsersUserIdRouteImport
295 parentRoute: typeof UsersRoute
296 }
297 '/posts/$postId': {
298 id: '/posts/$postId'
299 path: '/$postId'
300 fullPath: '/posts/$postId'
301 preLoaderRoute: typeof PostsPostIdRouteImport
302 parentRoute: typeof PostsRoute
303 }
304 '/api/users': {
305 id: '/api/users'
306 path: '/api/users'
307 fullPath: '/api/users'
308 preLoaderRoute: typeof ApiUsersRouteImport
309 parentRoute: typeof rootRouteImport
310 }
311 '/_layout/_layout-2': {
312 id: '/_layout/_layout-2'
313 path: ''
314 fullPath: ''
315 preLoaderRoute: typeof LayoutLayout2RouteImport
316 parentRoute: typeof LayoutRoute
317 }
318 '/transition/count/query': {
319 id: '/transition/count/query'
320 path: '/transition/count/query'
321 fullPath: '/transition/count/query'
322 preLoaderRoute: typeof TransitionCountQueryRouteImport
323 parentRoute: typeof rootRouteImport
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 SuspenseTransitionRoute: SuspenseTransitionRoute,
423 UsersRoute: UsersRouteWithChildren,
424 ApiUsersRoute: ApiUsersRouteWithChildren,
425 PostsPostIdDeepRoute: PostsPostIdDeepRoute,
426 TransitionCountQueryRoute: TransitionCountQueryRoute,
428export const routeTree = rootRouteImport
429 ._addFileChildren(rootRouteChildren)
430 ._addFileTypes<FileRouteTypes>()
431​
432import type { getRouter } from './router.tsx'
433import type { createStart } from '@tanstack/solid-start'
434declare module '@tanstack/solid-start' {
435 interface Register {
436 ssr: true
437 router: Awaited<ReturnType<typeof getRouter>>
438 }