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

routeTree.gen.ts

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