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 { Route as rootRouteImport } from './routes/__root'
12import { Route as PostsRouteImport } from './routes/posts'
13import { Route as PathlessLayoutRouteImport } from './routes/_pathlessLayout'
14import { Route as IndexRouteImport } from './routes/index'
15import { Route as PostsIndexRouteImport } from './routes/posts.index'
16import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
17import { Route as PathlessLayoutNestedLayoutRouteImport } from './routes/_pathlessLayout/_nested-layout'
18import { Route as PostsPostIdDeepRouteImport } from './routes/posts_.$postId.deep'
19import { Route as PathlessLayoutNestedLayoutRouteBRouteImport } from './routes/_pathlessLayout/_nested-layout/route-b'
20import { Route as PathlessLayoutNestedLayoutRouteARouteImport } from './routes/_pathlessLayout/_nested-layout/route-a'
21β
22const PostsRoute = PostsRouteImport.update({
23 id: '/posts',
24 path: '/posts',
25 getParentRoute: () => rootRouteImport,
26} as any)
27const PathlessLayoutRoute = PathlessLayoutRouteImport.update({
28 id: '/_pathlessLayout',
29 getParentRoute: () => rootRouteImport,
30} as any)
31const IndexRoute = IndexRouteImport.update({
32 id: '/',
33 path: '/',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const PostsIndexRoute = PostsIndexRouteImport.update({
37 id: '/',
38 path: '/',
39 getParentRoute: () => PostsRoute,
40} as any)
41const PostsPostIdRoute = PostsPostIdRouteImport.update({
42 id: '/$postId',
43 path: '/$postId',
44 getParentRoute: () => PostsRoute,
45} as any)
46const PathlessLayoutNestedLayoutRoute =
47 PathlessLayoutNestedLayoutRouteImport.update({
48 id: '/_nested-layout',
49 getParentRoute: () => PathlessLayoutRoute,
50 } as any)
51const PostsPostIdDeepRoute = PostsPostIdDeepRouteImport.update({
52 id: '/posts_/$postId/deep',
53 path: '/posts/$postId/deep',
54 getParentRoute: () => rootRouteImport,
55} as any)
56const PathlessLayoutNestedLayoutRouteBRoute =
57 PathlessLayoutNestedLayoutRouteBRouteImport.update({
58 id: '/route-b',
59 path: '/route-b',
60 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
61 } as any)
62const PathlessLayoutNestedLayoutRouteARoute =
63 PathlessLayoutNestedLayoutRouteARouteImport.update({
64 id: '/route-a',
65 path: '/route-a',
66 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
67 } as any)
68β
69export interface FileRoutesByFullPath {
70 '/': typeof IndexRoute
71 '/posts': typeof PostsRouteWithChildren
72 '/posts/$postId': typeof PostsPostIdRoute
73 '/posts/': typeof PostsIndexRoute
74 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
75 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
76 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
77}
78export interface FileRoutesByTo {
79 '/': typeof IndexRoute
80 '/posts/$postId': typeof PostsPostIdRoute
81 '/posts': typeof PostsIndexRoute
82 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
83 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
84 '/posts/$postId/deep': typeof PostsPostIdDeepRoute
85}
86export interface FileRoutesById {
87 __root__: typeof rootRouteImport
88 '/': typeof IndexRoute
89 '/_pathlessLayout': typeof PathlessLayoutRouteWithChildren
90 '/posts': typeof PostsRouteWithChildren
91 '/_pathlessLayout/_nested-layout': typeof PathlessLayoutNestedLayoutRouteWithChildren
92 '/posts/$postId': typeof PostsPostIdRoute
93 '/posts/': typeof PostsIndexRoute
94 '/_pathlessLayout/_nested-layout/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
95 '/_pathlessLayout/_nested-layout/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
96 '/posts_/$postId/deep': typeof PostsPostIdDeepRoute
97}
98export interface FileRouteTypes {
99 fileRoutesByFullPath: FileRoutesByFullPath
100 fullPaths:
101 | '/'
102 | '/posts'
103 | '/posts/$postId'
104 | '/posts/'
105 | '/route-a'
106 | '/route-b'
107 | '/posts/$postId/deep'
108 fileRoutesByTo: FileRoutesByTo
109 to:
110 | '/'
111 | '/posts/$postId'
112 | '/posts'
113 | '/route-a'
114 | '/route-b'
115 | '/posts/$postId/deep'
116 id:
117 | '__root__'
118 | '/'
119 | '/_pathlessLayout'
120 | '/posts'
121 | '/_pathlessLayout/_nested-layout'
122 | '/posts/$postId'
123 | '/posts/'
124 | '/_pathlessLayout/_nested-layout/route-a'
125 | '/_pathlessLayout/_nested-layout/route-b'
126 | '/posts_/$postId/deep'
127 fileRoutesById: FileRoutesById
128}
129export interface RootRouteChildren {
130 IndexRoute: typeof IndexRoute
131 PathlessLayoutRoute: typeof PathlessLayoutRouteWithChildren
132 PostsRoute: typeof PostsRouteWithChildren
133 PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
134}
135β
136declare module '@tanstack/react-router' {
137 interface FileRoutesByPath {
138 '/posts': {
139 id: '/posts'
140 path: '/posts'
141 fullPath: '/posts'
142 preLoaderRoute: typeof PostsRouteImport
143 parentRoute: typeof rootRouteImport
144 }
145 '/_pathlessLayout': {
146 id: '/_pathlessLayout'
147 path: ''
148 fullPath: ''
149 preLoaderRoute: typeof PathlessLayoutRouteImport
150 parentRoute: typeof rootRouteImport
151 }
152 '/': {
153 id: '/'
154 path: '/'
155 fullPath: '/'
156 preLoaderRoute: typeof IndexRouteImport
157 parentRoute: typeof rootRouteImport
158 }
159 '/posts/': {
160 id: '/posts/'
161 path: '/'
162 fullPath: '/posts/'
163 preLoaderRoute: typeof PostsIndexRouteImport
164 parentRoute: typeof PostsRoute
165 }
166 '/posts/$postId': {
167 id: '/posts/$postId'
168 path: '/$postId'
169 fullPath: '/posts/$postId'
170 preLoaderRoute: typeof PostsPostIdRouteImport
171 parentRoute: typeof PostsRoute
172 }
173 '/_pathlessLayout/_nested-layout': {
174 id: '/_pathlessLayout/_nested-layout'
175 path: ''
176 fullPath: ''
177 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteImport
178 parentRoute: typeof PathlessLayoutRoute
179 }
180 '/posts_/$postId/deep': {
181 id: '/posts_/$postId/deep'
182 path: '/posts/$postId/deep'
183 fullPath: '/posts/$postId/deep'
184 preLoaderRoute: typeof PostsPostIdDeepRouteImport
185 parentRoute: typeof rootRouteImport
186 }
187 '/_pathlessLayout/_nested-layout/route-b': {
188 id: '/_pathlessLayout/_nested-layout/route-b'
189 path: '/route-b'
190 fullPath: '/route-b'
191 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteBRouteImport
192 parentRoute: typeof PathlessLayoutNestedLayoutRoute
193 }
194 '/_pathlessLayout/_nested-layout/route-a': {
195 id: '/_pathlessLayout/_nested-layout/route-a'
196 path: '/route-a'
197 fullPath: '/route-a'
198 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteARouteImport
199 parentRoute: typeof PathlessLayoutNestedLayoutRoute
200 }
201 }
202}
203β
204interface PathlessLayoutNestedLayoutRouteChildren {
205 PathlessLayoutNestedLayoutRouteARoute: typeof PathlessLayoutNestedLayoutRouteARoute
206 PathlessLayoutNestedLayoutRouteBRoute: typeof PathlessLayoutNestedLayoutRouteBRoute
207}
208β
209const PathlessLayoutNestedLayoutRouteChildren: PathlessLayoutNestedLayoutRouteChildren =
210 {
211 PathlessLayoutNestedLayoutRouteARoute:
212 PathlessLayoutNestedLayoutRouteARoute,
213 PathlessLayoutNestedLayoutRouteBRoute:
214 PathlessLayoutNestedLayoutRouteBRoute,
215 }
216β
217const PathlessLayoutNestedLayoutRouteWithChildren =
218 PathlessLayoutNestedLayoutRoute._addFileChildren(
219 PathlessLayoutNestedLayoutRouteChildren,
220 )
221β
222interface PathlessLayoutRouteChildren {
223 PathlessLayoutNestedLayoutRoute: typeof PathlessLayoutNestedLayoutRouteWithChildren
224}
225β
226const PathlessLayoutRouteChildren: PathlessLayoutRouteChildren = {
227 PathlessLayoutNestedLayoutRoute: PathlessLayoutNestedLayoutRouteWithChildren,
228}
229β
230const PathlessLayoutRouteWithChildren = PathlessLayoutRoute._addFileChildren(
231 PathlessLayoutRouteChildren,
232)
233β
234interface PostsRouteChildren {
235 PostsPostIdRoute: typeof PostsPostIdRoute
236 PostsIndexRoute: typeof PostsIndexRoute
237}
238β
239const PostsRouteChildren: PostsRouteChildren = {
240 PostsPostIdRoute: PostsPostIdRoute,
241 PostsIndexRoute: PostsIndexRoute,
242}
243β
244const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
245β
246const rootRouteChildren: RootRouteChildren = {
247 IndexRoute: IndexRoute,
248 PathlessLayoutRoute: PathlessLayoutRouteWithChildren,
249 PostsRoute: PostsRouteWithChildren,
250 PostsPostIdDeepRoute: PostsPostIdDeepRoute,
251}
252export const routeTree = rootRouteImport
253 ._addFileChildren(rootRouteChildren)
254 ._addFileTypes<FileRouteTypes>()
255β
256import type { getRouter } from './router.tsx'
257import type { createStart } from '@tanstack/react-start'
258declare module '@tanstack/react-start' {
259 interface Register {
260 ssr: true
261 router: Awaited<ReturnType<typeof getRouter>>
262 }
263}