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 IndexRouteImport } from './routes/index'
13import { Route as LayoutRouteImport } from './routes/_layout'
14import { Route as DeferredRouteImport } from './routes/deferred'
15import { Route as PostsRouteImport } from './routes/posts'
16import { Route as SuspenseTransitionRouteImport } from './routes/suspense-transition'
17import { Route as UsersRouteImport } from './routes/users'
18import { Route as LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
19import { Route as ApiUsersRouteImport } from './routes/api.users'
20import { Route as PostsIndexRouteImport } from './routes/posts.index'
21import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
22import { Route as UsersIndexRouteImport } from './routes/users.index'
23import { Route as UsersUserIdRouteImport } from './routes/users.$userId'
24import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
25import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
26import { Route as ApiUsersIdRouteImport } from './routes/api/users.$id'
27import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
28import { Route as TransitionCountQueryRouteImport } from './routes/transition/count/query'
29​
30const IndexRoute = IndexRouteImport.update({
31 id: '/',
32 path: '/',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const LayoutRoute = LayoutRouteImport.update({
36 id: '/_layout',
37 getParentRoute: () => rootRouteImport,
38} as any)
39const DeferredRoute = DeferredRouteImport.update({
40 id: '/deferred',
41 path: '/deferred',
42 getParentRoute: () => rootRouteImport,
43} as any)
44const PostsRoute = PostsRouteImport.update({
45 id: '/posts',
46 path: '/posts',
47 getParentRoute: () => rootRouteImport,
48} as any)
49const SuspenseTransitionRoute = SuspenseTransitionRouteImport.update({
50 id: '/suspense-transition',
51 path: '/suspense-transition',
52 getParentRoute: () => rootRouteImport,
53} as any)
54const UsersRoute = UsersRouteImport.update({
55 id: '/users',
56 path: '/users',
57 getParentRoute: () => rootRouteImport,
58} as any)
59const LayoutLayout2Route = LayoutLayout2RouteImport.update({
60 id: '/_layout-2',
61 getParentRoute: () => LayoutRoute,
62} as any)
63const ApiUsersRoute = ApiUsersRouteImport.update({
64 id: '/api/users',
65 path: '/api/users',
66 getParentRoute: () => rootRouteImport,
67} as any)
68const PostsIndexRoute = PostsIndexRouteImport.update({
69 id: '/',
70 path: '/',
71 getParentRoute: () => PostsRoute,
72} as any)
73const PostsPostIdRoute = PostsPostIdRouteImport.update({
74 id: '/$postId',
75 path: '/$postId',
76 getParentRoute: () => PostsRoute,
77} as any)
78const UsersIndexRoute = UsersIndexRouteImport.update({
79 id: '/',
80 path: '/',
81 getParentRoute: () => UsersRoute,
82} as any)
83const UsersUserIdRoute = UsersUserIdRouteImport.update({
84 id: '/$userId',
85 path: '/$userId',
86 getParentRoute: () => UsersRoute,
87} as any)
88const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
89 id: '/layout-a',
90 path: '/layout-a',
91 getParentRoute: () => LayoutLayout2Route,
92} as any)
93const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBRouteImport.update({
94 id: '/layout-b',
95 path: '/layout-b',
96 getParentRoute: () => LayoutLayout2Route,
97} as any)
98const ApiUsersIdRoute = ApiUsersIdRouteImport.update({
99 id: '/$id',
100 path: '/$id',
101 getParentRoute: () => ApiUsersRoute,
102} as any)
103const PostsPostIdDeepRoute = PostsPostIdDeepRouteImport.update({
104 id: '/posts_/$postId/deep',
105 path: '/posts/$postId/deep',
106 getParentRoute: () => rootRouteImport,
107} as any)
108const TransitionCountQueryRoute = TransitionCountQueryRouteImport.update({
109 id: '/transition/count/query',
110 path: '/transition/count/query',
111 getParentRoute: () => rootRouteImport,
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 '/': {
235 id: '/'
236 path: '/'
237 fullPath: '/'
238 preLoaderRoute: typeof IndexRouteImport
239 parentRoute: typeof rootRouteImport
240 }
241 '/_layout': {
242 id: '/_layout'
243 path: ''
244 fullPath: '/'
245 preLoaderRoute: typeof LayoutRouteImport
246 parentRoute: typeof rootRouteImport
247 }
248 '/deferred': {
249 id: '/deferred'
250 path: '/deferred'
251 fullPath: '/deferred'
252 preLoaderRoute: typeof DeferredRouteImport
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 '/suspense-transition': {
263 id: '/suspense-transition'
264 path: '/suspense-transition'
265 fullPath: '/suspense-transition'
266 preLoaderRoute: typeof SuspenseTransitionRouteImport
267 parentRoute: typeof rootRouteImport
268 }
269 '/users': {
270 id: '/users'
271 path: '/users'
272 fullPath: '/users'
273 preLoaderRoute: typeof UsersRouteImport
274 parentRoute: typeof rootRouteImport
275 }
276 '/_layout/_layout-2': {
277 id: '/_layout/_layout-2'
278 path: ''
279 fullPath: '/'
280 preLoaderRoute: typeof LayoutLayout2RouteImport
281 parentRoute: typeof LayoutRoute
282 }
283 '/api/users': {
284 id: '/api/users'
285 path: '/api/users'
286 fullPath: '/api/users'
287 preLoaderRoute: typeof ApiUsersRouteImport
288 parentRoute: typeof rootRouteImport
289 }
290 '/posts/': {
291 id: '/posts/'
292 path: '/'
293 fullPath: '/posts/'
294 preLoaderRoute: typeof PostsIndexRouteImport
295 parentRoute: typeof PostsRoute
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 '/users/': {
305 id: '/users/'
306 path: '/'
307 fullPath: '/users/'
308 preLoaderRoute: typeof UsersIndexRouteImport
309 parentRoute: typeof UsersRoute
310 }
311 '/users/$userId': {
312 id: '/users/$userId'
313 path: '/$userId'
314 fullPath: '/users/$userId'
315 preLoaderRoute: typeof UsersUserIdRouteImport
316 parentRoute: typeof UsersRoute
317 }
318 '/_layout/_layout-2/layout-a': {
319 id: '/_layout/_layout-2/layout-a'
320 path: '/layout-a'
321 fullPath: '/layout-a'
322 preLoaderRoute: typeof LayoutLayout2LayoutARouteImport
323 parentRoute: typeof LayoutLayout2Route
324 }
325 '/_layout/_layout-2/layout-b': {
326 id: '/_layout/_layout-2/layout-b'
327 path: '/layout-b'
328 fullPath: '/layout-b'
329 preLoaderRoute: typeof LayoutLayout2LayoutBRouteImport
330 parentRoute: typeof LayoutLayout2Route
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 '/posts_/$postId/deep': {
340 id: '/posts_/$postId/deep'
341 path: '/posts/$postId/deep'
342 fullPath: '/posts/$postId/deep'
343 preLoaderRoute: typeof PostsPostIdDeepRouteImport
344 parentRoute: typeof rootRouteImport
345 }
346 '/transition/count/query': {
347 id: '/transition/count/query'
348 path: '/transition/count/query'
349 fullPath: '/transition/count/query'
350 preLoaderRoute: typeof TransitionCountQueryRouteImport
351 parentRoute: typeof rootRouteImport
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 }