Open History to see the last commit
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 type { CreateFileRoute, FileRoutesByPath } from '@tanstack/solid-router'
12β
13import { Route as rootRouteImport } from './routes/__root'
14import { Route as WithoutLoaderRouteImport } from './routes/without-loader'
15import { Route as ViewportTestRouteImport } from './routes/viewport-test'
16import { Route as PostsRouteImport } from './routes/posts'
17import { Route as LayoutRouteImport } from './routes/_layout'
18import { Route as IndexRouteImport } from './routes/index'
19import { Route as PostsIndexRouteImport } from './routes/posts.index'
20import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
21import { Route as LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
22import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
23import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
24β
25const WithoutLoaderRoute = WithoutLoaderRouteImport.update({
26 id: '/without-loader',
27 path: '/without-loader',
28 getParentRoute: () => rootRouteImport,
29} as any)
30const ViewportTestRoute = ViewportTestRouteImport.update({
31 id: '/viewport-test',
32 path: '/viewport-test',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const PostsRoute = PostsRouteImport.update({
36 id: '/posts',
37 path: '/posts',
38 getParentRoute: () => rootRouteImport,
39} as any)
40const LayoutRoute = LayoutRouteImport.update({
41 id: '/_layout',
42 getParentRoute: () => rootRouteImport,
43} as any)
44const IndexRoute = IndexRouteImport.update({
45 id: '/',
46 path: '/',
47 getParentRoute: () => rootRouteImport,
48} as any)
49const PostsIndexRoute = PostsIndexRouteImport.update({
50 id: '/',
51 path: '/',
52 getParentRoute: () => PostsRoute,
53} as any)
54const PostsPostIdRoute = PostsPostIdRouteImport.update({
55 id: '/$postId',
56 path: '/$postId',
57 getParentRoute: () => PostsRoute,
58} as any)
59const LayoutLayout2Route = LayoutLayout2RouteImport.update({
60 id: '/_layout-2',
61 getParentRoute: () => LayoutRoute,
62} as any)
63const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBRouteImport.update({
64 id: '/layout-b',
65 path: '/layout-b',
66 getParentRoute: () => LayoutLayout2Route,
67} as any)
68const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
69 id: '/layout-a',
70 path: '/layout-a',
71 getParentRoute: () => LayoutLayout2Route,
72} as any)
73β
74export interface FileRoutesByFullPath {
75 '/': typeof IndexRoute
76 '/posts': typeof PostsRouteWithChildren
77 '/viewport-test': typeof ViewportTestRoute
78 '/without-loader': typeof WithoutLoaderRoute
79 '/posts/$postId': typeof PostsPostIdRoute
80 '/posts/': typeof PostsIndexRoute
81 '/layout-a': typeof LayoutLayout2LayoutARoute
82 '/layout-b': typeof LayoutLayout2LayoutBRoute
83}
84export interface FileRoutesByTo {
85 '/': typeof IndexRoute
86 '/viewport-test': typeof ViewportTestRoute
87 '/without-loader': typeof WithoutLoaderRoute
88 '/posts/$postId': typeof PostsPostIdRoute
89 '/posts': typeof PostsIndexRoute
90 '/layout-a': typeof LayoutLayout2LayoutARoute
91 '/layout-b': typeof LayoutLayout2LayoutBRoute
92}
93export interface FileRoutesById {
94 __root__: typeof rootRouteImport
95 '/': typeof IndexRoute
96 '/_layout': typeof LayoutRouteWithChildren
97 '/posts': typeof PostsRouteWithChildren
98 '/viewport-test': typeof ViewportTestRoute
99 '/without-loader': typeof WithoutLoaderRoute
100 '/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren
101 '/posts/$postId': typeof PostsPostIdRoute
102 '/posts/': typeof PostsIndexRoute
103 '/_layout/_layout-2/layout-a': typeof LayoutLayout2LayoutARoute
104 '/_layout/_layout-2/layout-b': typeof LayoutLayout2LayoutBRoute
105}
106export interface FileRouteTypes {
107 fileRoutesByFullPath: FileRoutesByFullPath
108 fullPaths:
109 | '/'
110 | '/posts'
111 | '/viewport-test'
112 | '/without-loader'
113 | '/posts/$postId'
114 | '/posts/'
115 | '/layout-a'
116 | '/layout-b'
117 fileRoutesByTo: FileRoutesByTo
118 to:
119 | '/'
120 | '/viewport-test'
121 | '/without-loader'
122 | '/posts/$postId'
123 | '/posts'
124 | '/layout-a'
125 | '/layout-b'
126 id:
127 | '__root__'
128 | '/'
129 | '/_layout'
130 | '/posts'
131 | '/viewport-test'
132 | '/without-loader'
133 | '/_layout/_layout-2'
134 | '/posts/$postId'
135 | '/posts/'
136 | '/_layout/_layout-2/layout-a'
137 | '/_layout/_layout-2/layout-b'
138 fileRoutesById: FileRoutesById
139}
140export interface RootRouteChildren {
141 IndexRoute: typeof IndexRoute
142 LayoutRoute: typeof LayoutRouteWithChildren
143 PostsRoute: typeof PostsRouteWithChildren
144 ViewportTestRoute: typeof ViewportTestRoute
145 WithoutLoaderRoute: typeof WithoutLoaderRoute
146}
147β
148declare module '@tanstack/solid-router' {
149 interface FileRoutesByPath {
150 '/without-loader': {
151 id: '/without-loader'
152 path: '/without-loader'
153 fullPath: '/without-loader'
154 preLoaderRoute: typeof WithoutLoaderRouteImport
155 parentRoute: typeof rootRouteImport
156 }
157 '/viewport-test': {
158 id: '/viewport-test'
159 path: '/viewport-test'
160 fullPath: '/viewport-test'
161 preLoaderRoute: typeof ViewportTestRouteImport
162 parentRoute: typeof rootRouteImport
163 }
164 '/posts': {
165 id: '/posts'
166 path: '/posts'
167 fullPath: '/posts'
168 preLoaderRoute: typeof PostsRouteImport
169 parentRoute: typeof rootRouteImport
170 }
171 '/_layout': {
172 id: '/_layout'
173 path: ''
174 fullPath: ''
175 preLoaderRoute: typeof LayoutRouteImport
176 parentRoute: typeof rootRouteImport
177 }
178 '/': {
179 id: '/'
180 path: '/'
181 fullPath: '/'
182 preLoaderRoute: typeof IndexRouteImport
183 parentRoute: typeof rootRouteImport
184 }
185 '/posts/': {
186 id: '/posts/'
187 path: '/'
188 fullPath: '/posts/'
189 preLoaderRoute: typeof PostsIndexRouteImport
190 parentRoute: typeof PostsRoute
191 }
192 '/posts/$postId': {
193 id: '/posts/$postId'
194 path: '/$postId'
195 fullPath: '/posts/$postId'
196 preLoaderRoute: typeof PostsPostIdRouteImport
197 parentRoute: typeof PostsRoute
198 }
199 '/_layout/_layout-2': {
200 id: '/_layout/_layout-2'
201 path: ''
202 fullPath: ''
203 preLoaderRoute: typeof LayoutLayout2RouteImport
204 parentRoute: typeof LayoutRoute
205 }
206 '/_layout/_layout-2/layout-b': {
207 id: '/_layout/_layout-2/layout-b'
208 path: '/layout-b'
209 fullPath: '/layout-b'
210 preLoaderRoute: typeof LayoutLayout2LayoutBRouteImport
211 parentRoute: typeof LayoutLayout2Route
212 }
213 '/_layout/_layout-2/layout-a': {
214 id: '/_layout/_layout-2/layout-a'
215 path: '/layout-a'
216 fullPath: '/layout-a'
217 preLoaderRoute: typeof LayoutLayout2LayoutARouteImport
218 parentRoute: typeof LayoutLayout2Route
219 }
220 }
221}
222β
223declare module './routes/index' {
224 const createFileRoute: CreateFileRoute<
225 '/',
226 FileRoutesByPath['/']['parentRoute'],
227 FileRoutesByPath['/']['id'],
228 FileRoutesByPath['/']['path'],
229 FileRoutesByPath['/']['fullPath']
230 >
231}
232declare module './routes/_layout' {
233 const createFileRoute: CreateFileRoute<
234 '/_layout',
235 FileRoutesByPath['/_layout']['parentRoute'],
236 FileRoutesByPath['/_layout']['id'],
237 FileRoutesByPath['/_layout']['path'],
238 FileRoutesByPath['/_layout']['fullPath']
239 >
240}
241declare module './routes/posts' {
242 const createFileRoute: CreateFileRoute<
243 '/posts',
244 FileRoutesByPath['/posts']['parentRoute'],
245 FileRoutesByPath['/posts']['id'],
246 FileRoutesByPath['/posts']['path'],
247 FileRoutesByPath['/posts']['fullPath']
248 >
249}
250declare module './routes/viewport-test' {
251 const createFileRoute: CreateFileRoute<
252 '/viewport-test',
253 FileRoutesByPath['/viewport-test']['parentRoute'],
254 FileRoutesByPath['/viewport-test']['id'],
255 FileRoutesByPath['/viewport-test']['path'],
256 FileRoutesByPath['/viewport-test']['fullPath']
257 >
258}
259declare module './routes/without-loader' {
260 const createFileRoute: CreateFileRoute<
261 '/without-loader',
262 FileRoutesByPath['/without-loader']['parentRoute'],
263 FileRoutesByPath['/without-loader']['id'],
264 FileRoutesByPath['/without-loader']['path'],
265 FileRoutesByPath['/without-loader']['fullPath']
266 >
267}
268declare module './routes/_layout/_layout-2' {
269 const createFileRoute: CreateFileRoute<
270 '/_layout/_layout-2',
271 FileRoutesByPath['/_layout/_layout-2']['parentRoute'],
272 FileRoutesByPath['/_layout/_layout-2']['id'],
273 FileRoutesByPath['/_layout/_layout-2']['path'],
274 FileRoutesByPath['/_layout/_layout-2']['fullPath']
275 >
276}
277declare module './routes/posts.$postId' {
278 const createFileRoute: CreateFileRoute<
279 '/posts/$postId',
280 FileRoutesByPath['/posts/$postId']['parentRoute'],
281 FileRoutesByPath['/posts/$postId']['id'],
282 FileRoutesByPath['/posts/$postId']['path'],
283 FileRoutesByPath['/posts/$postId']['fullPath']
284 >
285}
286declare module './routes/posts.index' {
287 const createFileRoute: CreateFileRoute<
288 '/posts/',
289 FileRoutesByPath['/posts/']['parentRoute'],
290 FileRoutesByPath['/posts/']['id'],
291 FileRoutesByPath['/posts/']['path'],
292 FileRoutesByPath['/posts/']['fullPath']
293 >
294}
295declare module './routes/_layout/_layout-2/layout-a' {
296 const createFileRoute: CreateFileRoute<
297 '/_layout/_layout-2/layout-a',
298 FileRoutesByPath['/_layout/_layout-2/layout-a']['parentRoute'],
299 FileRoutesByPath['/_layout/_layout-2/layout-a']['id'],
300 FileRoutesByPath['/_layout/_layout-2/layout-a']['path'],
301 FileRoutesByPath['/_layout/_layout-2/layout-a']['fullPath']
302 >
303}
304declare module './routes/_layout/_layout-2/layout-b' {
305 const createFileRoute: CreateFileRoute<
306 '/_layout/_layout-2/layout-b',
307 FileRoutesByPath['/_layout/_layout-2/layout-b']['parentRoute'],
308 FileRoutesByPath['/_layout/_layout-2/layout-b']['id'],
309 FileRoutesByPath['/_layout/_layout-2/layout-b']['path'],
310 FileRoutesByPath['/_layout/_layout-2/layout-b']['fullPath']
311 >
312}
313β
314interface LayoutLayout2RouteChildren {
315 LayoutLayout2LayoutARoute: typeof LayoutLayout2LayoutARoute
316 LayoutLayout2LayoutBRoute: typeof LayoutLayout2LayoutBRoute
317}
318β
319const LayoutLayout2RouteChildren: LayoutLayout2RouteChildren = {
320 LayoutLayout2LayoutARoute: LayoutLayout2LayoutARoute,
321 LayoutLayout2LayoutBRoute: LayoutLayout2LayoutBRoute,
322}
323β
324const LayoutLayout2RouteWithChildren = LayoutLayout2Route._addFileChildren(
325 LayoutLayout2RouteChildren,
326)
327β
328interface LayoutRouteChildren {
329 LayoutLayout2Route: typeof LayoutLayout2RouteWithChildren
330}
331β
332const LayoutRouteChildren: LayoutRouteChildren = {
333 LayoutLayout2Route: LayoutLayout2RouteWithChildren,
334}
335β
336const LayoutRouteWithChildren =
337 LayoutRoute._addFileChildren(LayoutRouteChildren)
338β
339interface PostsRouteChildren {
340 PostsPostIdRoute: typeof PostsPostIdRoute
341 PostsIndexRoute: typeof PostsIndexRoute
342}
343β
344const PostsRouteChildren: PostsRouteChildren = {
345 PostsPostIdRoute: PostsPostIdRoute,
346 PostsIndexRoute: PostsIndexRoute,
347}
348β
349const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
350β
351const rootRouteChildren: RootRouteChildren = {
352 IndexRoute: IndexRoute,
353 LayoutRoute: LayoutRouteWithChildren,
354 PostsRoute: PostsRouteWithChildren,
355 ViewportTestRoute: ViewportTestRoute,
356 WithoutLoaderRoute: WithoutLoaderRoute,
357}
358export const routeTree = rootRouteImport
359 ._addFileChildren(rootRouteChildren)
360 ._addFileTypes<FileRouteTypes>()