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

routeTree.gen.ts

288 lines8.9 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 PostsRouteImport } from './routes/posts'
15import { Route as SharedSingletonRouteImport } from './routes/shared-singleton'
16import { Route as ViewportTestRouteImport } from './routes/viewport-test'
17import { Route as WithoutLoaderRouteImport } from './routes/without-loader'
18import { Route as LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
19import { Route as PostsIndexRouteImport } from './routes/posts.index'
20import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
21import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
22import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
23​
24const IndexRoute = IndexRouteImport.update({
25 id: '/',
26 path: '/',
27 getParentRoute: () => rootRouteImport,
28} as any)
29const LayoutRoute = LayoutRouteImport.update({
30 id: '/_layout',
31 getParentRoute: () => rootRouteImport,
32} as any)
33const PostsRoute = PostsRouteImport.update({
34 id: '/posts',
35 path: '/posts',
36 getParentRoute: () => rootRouteImport,
37} as any)
38const SharedSingletonRoute = SharedSingletonRouteImport.update({
39 id: '/shared-singleton',
40 path: '/shared-singleton',
41 getParentRoute: () => rootRouteImport,
42} as any)
43const ViewportTestRoute = ViewportTestRouteImport.update({
44 id: '/viewport-test',
45 path: '/viewport-test',
46 getParentRoute: () => rootRouteImport,
47} as any)
48const WithoutLoaderRoute = WithoutLoaderRouteImport.update({
49 id: '/without-loader',
50 path: '/without-loader',
51 getParentRoute: () => rootRouteImport,
52} as any)
53const LayoutLayout2Route = LayoutLayout2RouteImport.update({
54 id: '/_layout-2',
55 getParentRoute: () => LayoutRoute,
56} as any)
57const PostsIndexRoute = PostsIndexRouteImport.update({
58 id: '/',
59 path: '/',
60 getParentRoute: () => PostsRoute,
61} as any)
62const PostsPostIdRoute = PostsPostIdRouteImport.update({
63 id: '/$postId',
64 path: '/$postId',
65 getParentRoute: () => PostsRoute,
66} as any)
67const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
68 id: '/layout-a',
69 path: '/layout-a',
70 getParentRoute: () => LayoutLayout2Route,
71} as any)
72const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBRouteImport.update({
73 id: '/layout-b',
74 path: '/layout-b',
75 getParentRoute: () => LayoutLayout2Route,
76} as any)
77​
78export interface FileRoutesByFullPath {
79 '/': typeof IndexRoute
80 '/posts': typeof PostsRouteWithChildren
81 '/shared-singleton': typeof SharedSingletonRoute
82 '/viewport-test': typeof ViewportTestRoute
83 '/without-loader': typeof WithoutLoaderRoute
84 '/posts/$postId': typeof PostsPostIdRoute
85 '/posts/': typeof PostsIndexRoute
86 '/layout-a': typeof LayoutLayout2LayoutARoute
87 '/layout-b': typeof LayoutLayout2LayoutBRoute
89export interface FileRoutesByTo {
90 '/': typeof IndexRoute
91 '/shared-singleton': typeof SharedSingletonRoute
92 '/viewport-test': typeof ViewportTestRoute
93 '/without-loader': typeof WithoutLoaderRoute
94 '/posts/$postId': typeof PostsPostIdRoute
95 '/posts': typeof PostsIndexRoute
96 '/layout-a': typeof LayoutLayout2LayoutARoute
97 '/layout-b': typeof LayoutLayout2LayoutBRoute
99export interface FileRoutesById {
100 __root__: typeof rootRouteImport
101 '/': typeof IndexRoute
102 '/_layout': typeof LayoutRouteWithChildren
103 '/posts': typeof PostsRouteWithChildren
104 '/shared-singleton': typeof SharedSingletonRoute
105 '/viewport-test': typeof ViewportTestRoute
106 '/without-loader': typeof WithoutLoaderRoute
107 '/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren
108 '/posts/$postId': typeof PostsPostIdRoute
109 '/posts/': typeof PostsIndexRoute
110 '/_layout/_layout-2/layout-a': typeof LayoutLayout2LayoutARoute
111 '/_layout/_layout-2/layout-b': typeof LayoutLayout2LayoutBRoute
113export interface FileRouteTypes {
114 fileRoutesByFullPath: FileRoutesByFullPath
115 fullPaths:
116 | '/'
117 | '/posts'
118 | '/shared-singleton'
119 | '/viewport-test'
120 | '/without-loader'
121 | '/posts/$postId'
122 | '/posts/'
123 | '/layout-a'
124 | '/layout-b'
125 fileRoutesByTo: FileRoutesByTo
126 to:
127 | '/'
128 | '/shared-singleton'
129 | '/viewport-test'
130 | '/without-loader'
131 | '/posts/$postId'
132 | '/posts'
133 | '/layout-a'
134 | '/layout-b'
135 id:
136 | '__root__'
137 | '/'
138 | '/_layout'
139 | '/posts'
140 | '/shared-singleton'
141 | '/viewport-test'
142 | '/without-loader'
143 | '/_layout/_layout-2'
144 | '/posts/$postId'
145 | '/posts/'
146 | '/_layout/_layout-2/layout-a'
147 | '/_layout/_layout-2/layout-b'
148 fileRoutesById: FileRoutesById
150export interface RootRouteChildren {
151 IndexRoute: typeof IndexRoute
152 LayoutRoute: typeof LayoutRouteWithChildren
153 PostsRoute: typeof PostsRouteWithChildren
154 SharedSingletonRoute: typeof SharedSingletonRoute
155 ViewportTestRoute: typeof ViewportTestRoute
156 WithoutLoaderRoute: typeof WithoutLoaderRoute
158​
159declare module '@tanstack/react-router' {
160 interface FileRoutesByPath {
161 '/': {
162 id: '/'
163 path: '/'
164 fullPath: '/'
165 preLoaderRoute: typeof IndexRouteImport
166 parentRoute: typeof rootRouteImport
167 }
168 '/_layout': {
169 id: '/_layout'
170 path: ''
171 fullPath: '/'
172 preLoaderRoute: typeof LayoutRouteImport
173 parentRoute: typeof rootRouteImport
174 }
175 '/posts': {
176 id: '/posts'
177 path: '/posts'
178 fullPath: '/posts'
179 preLoaderRoute: typeof PostsRouteImport
180 parentRoute: typeof rootRouteImport
181 }
182 '/shared-singleton': {
183 id: '/shared-singleton'
184 path: '/shared-singleton'
185 fullPath: '/shared-singleton'
186 preLoaderRoute: typeof SharedSingletonRouteImport
187 parentRoute: typeof rootRouteImport
188 }
189 '/viewport-test': {
190 id: '/viewport-test'
191 path: '/viewport-test'
192 fullPath: '/viewport-test'
193 preLoaderRoute: typeof ViewportTestRouteImport
194 parentRoute: typeof rootRouteImport
195 }
196 '/without-loader': {
197 id: '/without-loader'
198 path: '/without-loader'
199 fullPath: '/without-loader'
200 preLoaderRoute: typeof WithoutLoaderRouteImport
201 parentRoute: typeof rootRouteImport
202 }
203 '/_layout/_layout-2': {
204 id: '/_layout/_layout-2'
205 path: ''
206 fullPath: '/'
207 preLoaderRoute: typeof LayoutLayout2RouteImport
208 parentRoute: typeof LayoutRoute
209 }
210 '/posts/': {
211 id: '/posts/'
212 path: '/'
213 fullPath: '/posts/'
214 preLoaderRoute: typeof PostsIndexRouteImport
215 parentRoute: typeof PostsRoute
216 }
217 '/posts/$postId': {
218 id: '/posts/$postId'
219 path: '/$postId'
220 fullPath: '/posts/$postId'
221 preLoaderRoute: typeof PostsPostIdRouteImport
222 parentRoute: typeof PostsRoute
223 }
224 '/_layout/_layout-2/layout-a': {
225 id: '/_layout/_layout-2/layout-a'
226 path: '/layout-a'
227 fullPath: '/layout-a'
228 preLoaderRoute: typeof LayoutLayout2LayoutARouteImport
229 parentRoute: typeof LayoutLayout2Route
230 }
231 '/_layout/_layout-2/layout-b': {
232 id: '/_layout/_layout-2/layout-b'
233 path: '/layout-b'
234 fullPath: '/layout-b'
235 preLoaderRoute: typeof LayoutLayout2LayoutBRouteImport
236 parentRoute: typeof LayoutLayout2Route
237 }
238 }
240​
241interface LayoutLayout2RouteChildren {
242 LayoutLayout2LayoutARoute: typeof LayoutLayout2LayoutARoute
243 LayoutLayout2LayoutBRoute: typeof LayoutLayout2LayoutBRoute
245​
246const LayoutLayout2RouteChildren: LayoutLayout2RouteChildren = {
247 LayoutLayout2LayoutARoute: LayoutLayout2LayoutARoute,
248 LayoutLayout2LayoutBRoute: LayoutLayout2LayoutBRoute,
250​
251const LayoutLayout2RouteWithChildren = LayoutLayout2Route._addFileChildren(
252 LayoutLayout2RouteChildren,
254​
255interface LayoutRouteChildren {
256 LayoutLayout2Route: typeof LayoutLayout2RouteWithChildren
258​
259const LayoutRouteChildren: LayoutRouteChildren = {
260 LayoutLayout2Route: LayoutLayout2RouteWithChildren,
262​
263const LayoutRouteWithChildren =
264 LayoutRoute._addFileChildren(LayoutRouteChildren)
265​
266interface PostsRouteChildren {
267 PostsPostIdRoute: typeof PostsPostIdRoute
268 PostsIndexRoute: typeof PostsIndexRoute
270​
271const PostsRouteChildren: PostsRouteChildren = {
272 PostsPostIdRoute: PostsPostIdRoute,
273 PostsIndexRoute: PostsIndexRoute,
275​
276const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
277​
278const rootRouteChildren: RootRouteChildren = {
279 IndexRoute: IndexRoute,
280 LayoutRoute: LayoutRouteWithChildren,
281 PostsRoute: PostsRouteWithChildren,
282 SharedSingletonRoute: SharedSingletonRoute,
283 ViewportTestRoute: ViewportTestRoute,
284 WithoutLoaderRoute: WithoutLoaderRoute,
286export const routeTree = rootRouteImport
287 ._addFileChildren(rootRouteChildren)
288 ._addFileTypes<FileRouteTypes>()