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

routeTree.gen.ts

304 lines8.7 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 PostsRouteImport } from './routes/posts'
14import { Route as DeferredRouteImport } from './routes/deferred'
15import { Route as IndexRouteImport } from './routes/index'
16import { Route as UsersIndexRouteImport } from './routes/users.index'
17import { Route as PostsIndexRouteImport } from './routes/posts.index'
18import { Route as UsersUserIdRouteImport } from './routes/users.$userId'
19import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
20import { Route as ApiUsersRouteImport } from './routes/api/users'
21import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
22import { Route as ApiUsersUserIdRouteImport } from './routes/api/users.$userId'
23​
24const UsersRoute = UsersRouteImport.update({
25 id: '/users',
26 path: '/users',
27 getParentRoute: () => rootRouteImport,
28} as any)
29const PostsRoute = PostsRouteImport.update({
30 id: '/posts',
31 path: '/posts',
32 getParentRoute: () => rootRouteImport,
33} as any)
34const DeferredRoute = DeferredRouteImport.update({
35 id: '/deferred',
36 path: '/deferred',
37 getParentRoute: () => rootRouteImport,
38} as any)
39const IndexRoute = IndexRouteImport.update({
40 id: '/',
41 path: '/',
42 getParentRoute: () => rootRouteImport,
43} as any)
44const UsersIndexRoute = UsersIndexRouteImport.update({
45 id: '/',
46 path: '/',
47 getParentRoute: () => UsersRoute,
48} as any)
49const PostsIndexRoute = PostsIndexRouteImport.update({
50 id: '/',
51 path: '/',
52 getParentRoute: () => PostsRoute,
53} as any)
54const UsersUserIdRoute = UsersUserIdRouteImport.update({
55 id: '/$userId',
56 path: '/$userId',
57 getParentRoute: () => UsersRoute,
58} as any)
59const PostsPostIdRoute = PostsPostIdRouteImport.update({
60 id: '/$postId',
61 path: '/$postId',
62 getParentRoute: () => PostsRoute,
63} as any)
64const ApiUsersRoute = ApiUsersRouteImport.update({
65 id: '/api/users',
66 path: '/api/users',
67 getParentRoute: () => rootRouteImport,
68} as any)
69const PostsPostIdDeepRoute = PostsPostIdDeepRouteImport.update({
70 id: '/posts_/$postId/deep',
71 path: '/posts/$postId/deep',
72 getParentRoute: () => rootRouteImport,
73} as any)
74const ApiUsersUserIdRoute = ApiUsersUserIdRouteImport.update({
75 id: '/$userId',
76 path: '/$userId',
77 getParentRoute: () => ApiUsersRoute,
78} as any)
79​
80export interface FileRoutesByFullPath {
81 '/': typeof IndexRoute
82 '/deferred': typeof DeferredRoute
83 '/posts': typeof PostsRouteWithChildren
84 '/users': typeof UsersRouteWithChildren
85 '/api/users': typeof ApiUsersRouteWithChildren
86 '/posts/$postId': typeof PostsPostIdRoute
87 '/users/$userId': typeof UsersUserIdRoute
88 '/posts/': typeof PostsIndexRoute
89 '/users/': typeof UsersIndexRoute
90 '/api/users/$userId': typeof ApiUsersUserIdRoute
91 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
93export interface FileRoutesByTo {
94 '/': typeof IndexRoute
95 '/deferred': typeof DeferredRoute
96 '/api/users': typeof ApiUsersRouteWithChildren
97 '/posts/$postId': typeof PostsPostIdRoute
98 '/users/$userId': typeof UsersUserIdRoute
99 '/posts': typeof PostsIndexRoute
100 '/users': typeof UsersIndexRoute
101 '/api/users/$userId': typeof ApiUsersUserIdRoute
102 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
104export interface FileRoutesById {
105 __root__: typeof rootRouteImport
106 '/': typeof IndexRoute
107 '/deferred': typeof DeferredRoute
108 '/posts': typeof PostsRouteWithChildren
109 '/users': typeof UsersRouteWithChildren
110 '/api/users': typeof ApiUsersRouteWithChildren
111 '/posts/$postId': typeof PostsPostIdRoute
112 '/users/$userId': typeof UsersUserIdRoute
113 '/posts/': typeof PostsIndexRoute
114 '/users/': typeof UsersIndexRoute
115 '/api/users/$userId': typeof ApiUsersUserIdRoute
116 '/posts_/$postId/deep': typeof PostsPostIdDeepRoute
118export interface FileRouteTypes {
119 fileRoutesByFullPath: FileRoutesByFullPath
120 fullPaths:
121 | '/'
122 | '/deferred'
123 | '/posts'
124 | '/users'
125 | '/api/users'
126 | '/posts/$postId'
127 | '/users/$userId'
128 | '/posts/'
129 | '/users/'
130 | '/api/users/$userId'
131 | '/posts/$postId/deep'
132 fileRoutesByTo: FileRoutesByTo
133 to:
134 | '/'
135 | '/deferred'
136 | '/api/users'
137 | '/posts/$postId'
138 | '/users/$userId'
139 | '/posts'
140 | '/users'
141 | '/api/users/$userId'
142 | '/posts/$postId/deep'
143 id:
144 | '__root__'
145 | '/'
146 | '/deferred'
147 | '/posts'
148 | '/users'
149 | '/api/users'
150 | '/posts/$postId'
151 | '/users/$userId'
152 | '/posts/'
153 | '/users/'
154 | '/api/users/$userId'
155 | '/posts_/$postId/deep'
156 fileRoutesById: FileRoutesById
158export interface RootRouteChildren {
159 IndexRoute: typeof IndexRoute
160 DeferredRoute: typeof DeferredRoute
161 PostsRoute: typeof PostsRouteWithChildren
162 UsersRoute: typeof UsersRouteWithChildren
163 ApiUsersRoute: typeof ApiUsersRouteWithChildren
164 PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
166​
167declare module '@tanstack/solid-router' {
168 interface FileRoutesByPath {
169 '/users': {
170 id: '/users'
171 path: '/users'
172 fullPath: '/users'
173 preLoaderRoute: typeof UsersRouteImport
174 parentRoute: typeof rootRouteImport
175 }
176 '/posts': {
177 id: '/posts'
178 path: '/posts'
179 fullPath: '/posts'
180 preLoaderRoute: typeof PostsRouteImport
181 parentRoute: typeof rootRouteImport
182 }
183 '/deferred': {
184 id: '/deferred'
185 path: '/deferred'
186 fullPath: '/deferred'
187 preLoaderRoute: typeof DeferredRouteImport
188 parentRoute: typeof rootRouteImport
189 }
190 '/': {
191 id: '/'
192 path: '/'
193 fullPath: '/'
194 preLoaderRoute: typeof IndexRouteImport
195 parentRoute: typeof rootRouteImport
196 }
197 '/users/': {
198 id: '/users/'
199 path: '/'
200 fullPath: '/users/'
201 preLoaderRoute: typeof UsersIndexRouteImport
202 parentRoute: typeof UsersRoute
203 }
204 '/posts/': {
205 id: '/posts/'
206 path: '/'
207 fullPath: '/posts/'
208 preLoaderRoute: typeof PostsIndexRouteImport
209 parentRoute: typeof PostsRoute
210 }
211 '/users/$userId': {
212 id: '/users/$userId'
213 path: '/$userId'
214 fullPath: '/users/$userId'
215 preLoaderRoute: typeof UsersUserIdRouteImport
216 parentRoute: typeof UsersRoute
217 }
218 '/posts/$postId': {
219 id: '/posts/$postId'
220 path: '/$postId'
221 fullPath: '/posts/$postId'
222 preLoaderRoute: typeof PostsPostIdRouteImport
223 parentRoute: typeof PostsRoute
224 }
225 '/api/users': {
226 id: '/api/users'
227 path: '/api/users'
228 fullPath: '/api/users'
229 preLoaderRoute: typeof ApiUsersRouteImport
230 parentRoute: typeof rootRouteImport
231 }
232 '/posts_/$postId/deep': {
233 id: '/posts_/$postId/deep'
234 path: '/posts/$postId/deep'
235 fullPath: '/posts/$postId/deep'
236 preLoaderRoute: typeof PostsPostIdDeepRouteImport
237 parentRoute: typeof rootRouteImport
238 }
239 '/api/users/$userId': {
240 id: '/api/users/$userId'
241 path: '/$userId'
242 fullPath: '/api/users/$userId'
243 preLoaderRoute: typeof ApiUsersUserIdRouteImport
244 parentRoute: typeof ApiUsersRoute
245 }
246 }
248​
249interface PostsRouteChildren {
250 PostsPostIdRoute: typeof PostsPostIdRoute
251 PostsIndexRoute: typeof PostsIndexRoute
253​
254const PostsRouteChildren: PostsRouteChildren = {
255 PostsPostIdRoute: PostsPostIdRoute,
256 PostsIndexRoute: PostsIndexRoute,
258​
259const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
260​
261interface UsersRouteChildren {
262 UsersUserIdRoute: typeof UsersUserIdRoute
263 UsersIndexRoute: typeof UsersIndexRoute
265​
266const UsersRouteChildren: UsersRouteChildren = {
267 UsersUserIdRoute: UsersUserIdRoute,
268 UsersIndexRoute: UsersIndexRoute,
270​
271const UsersRouteWithChildren = UsersRoute._addFileChildren(UsersRouteChildren)
272​
273interface ApiUsersRouteChildren {
274 ApiUsersUserIdRoute: typeof ApiUsersUserIdRoute
276​
277const ApiUsersRouteChildren: ApiUsersRouteChildren = {
278 ApiUsersUserIdRoute: ApiUsersUserIdRoute,
280​
281const ApiUsersRouteWithChildren = ApiUsersRoute._addFileChildren(
282 ApiUsersRouteChildren,
284​
285const rootRouteChildren: RootRouteChildren = {
286 IndexRoute: IndexRoute,
287 DeferredRoute: DeferredRoute,
288 PostsRoute: PostsRouteWithChildren,
289 UsersRoute: UsersRouteWithChildren,
290 ApiUsersRoute: ApiUsersRouteWithChildren,
291 PostsPostIdDeepRoute: PostsPostIdDeepRoute,
293export const routeTree = rootRouteImport
294 ._addFileChildren(rootRouteChildren)
295 ._addFileTypes<FileRouteTypes>()
296​
297import type { getRouter } from './router.tsx'
298import type { createStart } from '@tanstack/solid-start'
299declare module '@tanstack/solid-start' {
300 interface Register {
301 ssr: true
302 router: Awaited<ReturnType<typeof getRouter>>
303 }