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

routeTree.gen.ts

426 lines13.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 IndexRouteImport } from './routes/index'
13import { Route as PathlessLayoutRouteImport } from './routes/_pathlessLayout'
14import { Route as DeferredRouteImport } from './routes/deferred'
15import { Route as PostsRouteImport } from './routes/posts'
16import { Route as RedirectRouteImport } from './routes/redirect'
17import { Route as UsersRouteImport } from './routes/users'
18import { Route as PathlessLayoutNestedLayoutRouteImport } from './routes/_pathlessLayout/_nested-layout'
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 PathlessLayoutNestedLayoutRouteARouteImport } from './routes/_pathlessLayout/_nested-layout/route-a'
25import { Route as PathlessLayoutNestedLayoutRouteBRouteImport } from './routes/_pathlessLayout/_nested-layout/route-b'
26import { Route as ApiUsersUserIdRouteImport } from './routes/api/users.$userId'
27import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
28​
29const IndexRoute = IndexRouteImport.update({
30 id: '/',
31 path: '/',
32 getParentRoute: () => rootRouteImport,
33} as any)
34const PathlessLayoutRoute = PathlessLayoutRouteImport.update({
35 id: '/_pathlessLayout',
36 getParentRoute: () => rootRouteImport,
37} as any)
38const DeferredRoute = DeferredRouteImport.update({
39 id: '/deferred',
40 path: '/deferred',
41 getParentRoute: () => rootRouteImport,
42} as any)
43const PostsRoute = PostsRouteImport.update({
44 id: '/posts',
45 path: '/posts',
46 getParentRoute: () => rootRouteImport,
47} as any)
48const RedirectRoute = RedirectRouteImport.update({
49 id: '/redirect',
50 path: '/redirect',
51 getParentRoute: () => rootRouteImport,
52} as any)
53const UsersRoute = UsersRouteImport.update({
54 id: '/users',
55 path: '/users',
56 getParentRoute: () => rootRouteImport,
57} as any)
58const PathlessLayoutNestedLayoutRoute =
59 PathlessLayoutNestedLayoutRouteImport.update({
60 id: '/_nested-layout',
61 getParentRoute: () => PathlessLayoutRoute,
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 PathlessLayoutNestedLayoutRouteARoute =
89 PathlessLayoutNestedLayoutRouteARouteImport.update({
90 id: '/route-a',
91 path: '/route-a',
92 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
93 } as any)
94const PathlessLayoutNestedLayoutRouteBRoute =
95 PathlessLayoutNestedLayoutRouteBRouteImport.update({
96 id: '/route-b',
97 path: '/route-b',
98 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
99 } as any)
100const ApiUsersUserIdRoute = ApiUsersUserIdRouteImport.update({
101 id: '/$userId',
102 path: '/$userId',
103 getParentRoute: () => ApiUsersRoute,
104} as any)
105const PostsPostIdDeepRoute = PostsPostIdDeepRouteImport.update({
106 id: '/posts_/$postId/deep',
107 path: '/posts/$postId/deep',
108 getParentRoute: () => rootRouteImport,
109} as any)
110​
111export interface FileRoutesByFullPath {
112 '/': typeof IndexRoute
113 '/deferred': typeof DeferredRoute
114 '/posts': typeof PostsRouteWithChildren
115 '/redirect': typeof RedirectRoute
116 '/users': typeof UsersRouteWithChildren
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/$userId': typeof ApiUsersUserIdRoute
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/$userId': typeof ApiUsersUserIdRoute
139 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
141export interface FileRoutesById {
142 __root__: typeof rootRouteImport
143 '/': typeof IndexRoute
144 '/_pathlessLayout': typeof PathlessLayoutRouteWithChildren
145 '/deferred': typeof DeferredRoute
146 '/posts': typeof PostsRouteWithChildren
147 '/redirect': typeof RedirectRoute
148 '/users': typeof UsersRouteWithChildren
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/$userId': typeof ApiUsersUserIdRoute
158 '/posts_/$postId/deep': typeof PostsPostIdDeepRoute
160export interface FileRouteTypes {
161 fileRoutesByFullPath: FileRoutesByFullPath
162 fullPaths:
163 | '/'
164 | '/deferred'
165 | '/posts'
166 | '/redirect'
167 | '/users'
168 | '/api/users'
169 | '/posts/$postId'
170 | '/users/$userId'
171 | '/posts/'
172 | '/users/'
173 | '/route-a'
174 | '/route-b'
175 | '/api/users/$userId'
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/$userId'
190 | '/posts/$postId/deep'
191 id:
192 | '__root__'
193 | '/'
194 | '/_pathlessLayout'
195 | '/deferred'
196 | '/posts'
197 | '/redirect'
198 | '/users'
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/$userId'
208 | '/posts_/$postId/deep'
209 fileRoutesById: FileRoutesById
211export interface RootRouteChildren {
212 IndexRoute: typeof IndexRoute
213 PathlessLayoutRoute: typeof PathlessLayoutRouteWithChildren
214 DeferredRoute: typeof DeferredRoute
215 PostsRoute: typeof PostsRouteWithChildren
216 RedirectRoute: typeof RedirectRoute
217 UsersRoute: typeof UsersRouteWithChildren
218 ApiUsersRoute: typeof ApiUsersRouteWithChildren
219 PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
221​
222declare module '@tanstack/solid-router' {
223 interface FileRoutesByPath {
224 '/': {
225 id: '/'
226 path: '/'
227 fullPath: '/'
228 preLoaderRoute: typeof IndexRouteImport
229 parentRoute: typeof rootRouteImport
230 }
231 '/_pathlessLayout': {
232 id: '/_pathlessLayout'
233 path: ''
234 fullPath: '/'
235 preLoaderRoute: typeof PathlessLayoutRouteImport
236 parentRoute: typeof rootRouteImport
237 }
238 '/deferred': {
239 id: '/deferred'
240 path: '/deferred'
241 fullPath: '/deferred'
242 preLoaderRoute: typeof DeferredRouteImport
243 parentRoute: typeof rootRouteImport
244 }
245 '/posts': {
246 id: '/posts'
247 path: '/posts'
248 fullPath: '/posts'
249 preLoaderRoute: typeof PostsRouteImport
250 parentRoute: typeof rootRouteImport
251 }
252 '/redirect': {
253 id: '/redirect'
254 path: '/redirect'
255 fullPath: '/redirect'
256 preLoaderRoute: typeof RedirectRouteImport
257 parentRoute: typeof rootRouteImport
258 }
259 '/users': {
260 id: '/users'
261 path: '/users'
262 fullPath: '/users'
263 preLoaderRoute: typeof UsersRouteImport
264 parentRoute: typeof rootRouteImport
265 }
266 '/_pathlessLayout/_nested-layout': {
267 id: '/_pathlessLayout/_nested-layout'
268 path: ''
269 fullPath: '/'
270 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteImport
271 parentRoute: typeof PathlessLayoutRoute
272 }
273 '/api/users': {
274 id: '/api/users'
275 path: '/api/users'
276 fullPath: '/api/users'
277 preLoaderRoute: typeof ApiUsersRouteImport
278 parentRoute: typeof rootRouteImport
279 }
280 '/posts/': {
281 id: '/posts/'
282 path: '/'
283 fullPath: '/posts/'
284 preLoaderRoute: typeof PostsIndexRouteImport
285 parentRoute: typeof PostsRoute
286 }
287 '/posts/$postId': {
288 id: '/posts/$postId'
289 path: '/$postId'
290 fullPath: '/posts/$postId'
291 preLoaderRoute: typeof PostsPostIdRouteImport
292 parentRoute: typeof PostsRoute
293 }
294 '/users/': {
295 id: '/users/'
296 path: '/'
297 fullPath: '/users/'
298 preLoaderRoute: typeof UsersIndexRouteImport
299 parentRoute: typeof UsersRoute
300 }
301 '/users/$userId': {
302 id: '/users/$userId'
303 path: '/$userId'
304 fullPath: '/users/$userId'
305 preLoaderRoute: typeof UsersUserIdRouteImport
306 parentRoute: typeof UsersRoute
307 }
308 '/_pathlessLayout/_nested-layout/route-a': {
309 id: '/_pathlessLayout/_nested-layout/route-a'
310 path: '/route-a'
311 fullPath: '/route-a'
312 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteARouteImport
313 parentRoute: typeof PathlessLayoutNestedLayoutRoute
314 }
315 '/_pathlessLayout/_nested-layout/route-b': {
316 id: '/_pathlessLayout/_nested-layout/route-b'
317 path: '/route-b'
318 fullPath: '/route-b'
319 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteBRouteImport
320 parentRoute: typeof PathlessLayoutNestedLayoutRoute
321 }
322 '/api/users/$userId': {
323 id: '/api/users/$userId'
324 path: '/$userId'
325 fullPath: '/api/users/$userId'
326 preLoaderRoute: typeof ApiUsersUserIdRouteImport
327 parentRoute: typeof ApiUsersRoute
328 }
329 '/posts_/$postId/deep': {
330 id: '/posts_/$postId/deep'
331 path: '/posts/$postId/deep'
332 fullPath: '/posts/$postId/deep'
333 preLoaderRoute: typeof PostsPostIdDeepRouteImport
334 parentRoute: typeof rootRouteImport
335 }
336 }
338​
339interface PathlessLayoutNestedLayoutRouteChildren {
340 PathlessLayoutNestedLayoutRouteARoute: typeof PathlessLayoutNestedLayoutRouteARoute
341 PathlessLayoutNestedLayoutRouteBRoute: typeof PathlessLayoutNestedLayoutRouteBRoute
343​
344const PathlessLayoutNestedLayoutRouteChildren: PathlessLayoutNestedLayoutRouteChildren =
345 {
346 PathlessLayoutNestedLayoutRouteARoute:
347 PathlessLayoutNestedLayoutRouteARoute,
348 PathlessLayoutNestedLayoutRouteBRoute:
349 PathlessLayoutNestedLayoutRouteBRoute,
350 }
351​
352const PathlessLayoutNestedLayoutRouteWithChildren =
353 PathlessLayoutNestedLayoutRoute._addFileChildren(
354 PathlessLayoutNestedLayoutRouteChildren,
355 )
356​
357interface PathlessLayoutRouteChildren {
358 PathlessLayoutNestedLayoutRoute: typeof PathlessLayoutNestedLayoutRouteWithChildren
360​
361const PathlessLayoutRouteChildren: PathlessLayoutRouteChildren = {
362 PathlessLayoutNestedLayoutRoute: PathlessLayoutNestedLayoutRouteWithChildren,
364​
365const PathlessLayoutRouteWithChildren = PathlessLayoutRoute._addFileChildren(
366 PathlessLayoutRouteChildren,
368​
369interface PostsRouteChildren {
370 PostsPostIdRoute: typeof PostsPostIdRoute
371 PostsIndexRoute: typeof PostsIndexRoute
373​
374const PostsRouteChildren: PostsRouteChildren = {
375 PostsPostIdRoute: PostsPostIdRoute,
376 PostsIndexRoute: PostsIndexRoute,
378​
379const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
380​
381interface UsersRouteChildren {
382 UsersUserIdRoute: typeof UsersUserIdRoute
383 UsersIndexRoute: typeof UsersIndexRoute
385​
386const UsersRouteChildren: UsersRouteChildren = {
387 UsersUserIdRoute: UsersUserIdRoute,
388 UsersIndexRoute: UsersIndexRoute,
390​
391const UsersRouteWithChildren = UsersRoute._addFileChildren(UsersRouteChildren)
392​
393interface ApiUsersRouteChildren {
394 ApiUsersUserIdRoute: typeof ApiUsersUserIdRoute
396​
397const ApiUsersRouteChildren: ApiUsersRouteChildren = {
398 ApiUsersUserIdRoute: ApiUsersUserIdRoute,
400​
401const ApiUsersRouteWithChildren = ApiUsersRoute._addFileChildren(
402 ApiUsersRouteChildren,
404​
405const rootRouteChildren: RootRouteChildren = {
406 IndexRoute: IndexRoute,
407 PathlessLayoutRoute: PathlessLayoutRouteWithChildren,
408 DeferredRoute: DeferredRoute,
409 PostsRoute: PostsRouteWithChildren,
410 RedirectRoute: RedirectRoute,
411 UsersRoute: UsersRouteWithChildren,
412 ApiUsersRoute: ApiUsersRouteWithChildren,
413 PostsPostIdDeepRoute: PostsPostIdDeepRoute,
415export const routeTree = rootRouteImport
416 ._addFileChildren(rootRouteChildren)
417 ._addFileTypes<FileRouteTypes>()
418​
419import type { getRouter } from './router.tsx'
420import type { createStart } from '@tanstack/solid-start'
421declare module '@tanstack/solid-start' {
422 interface Register {
423 ssr: true
424 router: Awaited<ReturnType<typeof getRouter>>
425 }