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

routeTree.gen.ts

220 lines6.6 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 LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
16import { Route as PostsIndexRouteImport } from './routes/posts.index'
17import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
18import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
19import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
20​
21const IndexRoute = IndexRouteImport.update({
22 id: '/',
23 path: '/',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const LayoutRoute = LayoutRouteImport.update({
27 id: '/_layout',
28 getParentRoute: () => rootRouteImport,
29} as any)
30const PostsRoute = PostsRouteImport.update({
31 id: '/posts',
32 path: '/posts',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const LayoutLayout2Route = LayoutLayout2RouteImport.update({
36 id: '/_layout-2',
37 getParentRoute: () => LayoutRoute,
38} as any)
39const PostsIndexRoute = PostsIndexRouteImport.update({
40 id: '/',
41 path: '/',
42 getParentRoute: () => PostsRoute,
43} as any)
44const PostsPostIdRoute = PostsPostIdRouteImport.update({
45 id: '/$postId',
46 path: '/$postId',
47 getParentRoute: () => PostsRoute,
48} as any)
49const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
50 id: '/layout-a',
51 path: '/layout-a',
52 getParentRoute: () => LayoutLayout2Route,
53} as any)
54const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBRouteImport.update({
55 id: '/layout-b',
56 path: '/layout-b',
57 getParentRoute: () => LayoutLayout2Route,
58} as any)
59​
60export interface FileRoutesByFullPath {
61 '/': typeof IndexRoute
62 '/posts': typeof PostsRouteWithChildren
63 '/posts/$postId': typeof PostsPostIdRoute
64 '/posts/': typeof PostsIndexRoute
65 '/layout-a': typeof LayoutLayout2LayoutARoute
66 '/layout-b': typeof LayoutLayout2LayoutBRoute
68export interface FileRoutesByTo {
69 '/': typeof IndexRoute
70 '/posts/$postId': typeof PostsPostIdRoute
71 '/posts': typeof PostsIndexRoute
72 '/layout-a': typeof LayoutLayout2LayoutARoute
73 '/layout-b': typeof LayoutLayout2LayoutBRoute
75export interface FileRoutesById {
76 __root__: typeof rootRouteImport
77 '/': typeof IndexRoute
78 '/_layout': typeof LayoutRouteWithChildren
79 '/posts': typeof PostsRouteWithChildren
80 '/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren
81 '/posts/$postId': typeof PostsPostIdRoute
82 '/posts/': typeof PostsIndexRoute
83 '/_layout/_layout-2/layout-a': typeof LayoutLayout2LayoutARoute
84 '/_layout/_layout-2/layout-b': typeof LayoutLayout2LayoutBRoute
86export interface FileRouteTypes {
87 fileRoutesByFullPath: FileRoutesByFullPath
88 fullPaths:
89 | '/'
90 | '/posts'
91 | '/posts/$postId'
92 | '/posts/'
93 | '/layout-a'
94 | '/layout-b'
95 fileRoutesByTo: FileRoutesByTo
96 to: '/' | '/posts/$postId' | '/posts' | '/layout-a' | '/layout-b'
97 id:
98 | '__root__'
99 | '/'
100 | '/_layout'
101 | '/posts'
102 | '/_layout/_layout-2'
103 | '/posts/$postId'
104 | '/posts/'
105 | '/_layout/_layout-2/layout-a'
106 | '/_layout/_layout-2/layout-b'
107 fileRoutesById: FileRoutesById
109export interface RootRouteChildren {
110 IndexRoute: typeof IndexRoute
111 LayoutRoute: typeof LayoutRouteWithChildren
112 PostsRoute: typeof PostsRouteWithChildren
114​
115declare module '@tanstack/solid-router' {
116 interface FileRoutesByPath {
117 '/': {
118 id: '/'
119 path: '/'
120 fullPath: '/'
121 preLoaderRoute: typeof IndexRouteImport
122 parentRoute: typeof rootRouteImport
123 }
124 '/_layout': {
125 id: '/_layout'
126 path: ''
127 fullPath: '/'
128 preLoaderRoute: typeof LayoutRouteImport
129 parentRoute: typeof rootRouteImport
130 }
131 '/posts': {
132 id: '/posts'
133 path: '/posts'
134 fullPath: '/posts'
135 preLoaderRoute: typeof PostsRouteImport
136 parentRoute: typeof rootRouteImport
137 }
138 '/_layout/_layout-2': {
139 id: '/_layout/_layout-2'
140 path: ''
141 fullPath: '/'
142 preLoaderRoute: typeof LayoutLayout2RouteImport
143 parentRoute: typeof LayoutRoute
144 }
145 '/posts/': {
146 id: '/posts/'
147 path: '/'
148 fullPath: '/posts/'
149 preLoaderRoute: typeof PostsIndexRouteImport
150 parentRoute: typeof PostsRoute
151 }
152 '/posts/$postId': {
153 id: '/posts/$postId'
154 path: '/$postId'
155 fullPath: '/posts/$postId'
156 preLoaderRoute: typeof PostsPostIdRouteImport
157 parentRoute: typeof PostsRoute
158 }
159 '/_layout/_layout-2/layout-a': {
160 id: '/_layout/_layout-2/layout-a'
161 path: '/layout-a'
162 fullPath: '/layout-a'
163 preLoaderRoute: typeof LayoutLayout2LayoutARouteImport
164 parentRoute: typeof LayoutLayout2Route
165 }
166 '/_layout/_layout-2/layout-b': {
167 id: '/_layout/_layout-2/layout-b'
168 path: '/layout-b'
169 fullPath: '/layout-b'
170 preLoaderRoute: typeof LayoutLayout2LayoutBRouteImport
171 parentRoute: typeof LayoutLayout2Route
172 }
173 }
175​
176interface LayoutLayout2RouteChildren {
177 LayoutLayout2LayoutARoute: typeof LayoutLayout2LayoutARoute
178 LayoutLayout2LayoutBRoute: typeof LayoutLayout2LayoutBRoute
180​
181const LayoutLayout2RouteChildren: LayoutLayout2RouteChildren = {
182 LayoutLayout2LayoutARoute: LayoutLayout2LayoutARoute,
183 LayoutLayout2LayoutBRoute: LayoutLayout2LayoutBRoute,
185​
186const LayoutLayout2RouteWithChildren = LayoutLayout2Route._addFileChildren(
187 LayoutLayout2RouteChildren,
189​
190interface LayoutRouteChildren {
191 LayoutLayout2Route: typeof LayoutLayout2RouteWithChildren
193​
194const LayoutRouteChildren: LayoutRouteChildren = {
195 LayoutLayout2Route: LayoutLayout2RouteWithChildren,
197​
198const LayoutRouteWithChildren =
199 LayoutRoute._addFileChildren(LayoutRouteChildren)
200​
201interface PostsRouteChildren {
202 PostsPostIdRoute: typeof PostsPostIdRoute
203 PostsIndexRoute: typeof PostsIndexRoute
205​
206const PostsRouteChildren: PostsRouteChildren = {
207 PostsPostIdRoute: PostsPostIdRoute,
208 PostsIndexRoute: PostsIndexRoute,
210​
211const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
212​
213const rootRouteChildren: RootRouteChildren = {
214 IndexRoute: IndexRoute,
215 LayoutRoute: LayoutRouteWithChildren,
216 PostsRoute: PostsRouteWithChildren,
218export const routeTree = rootRouteImport
219 ._addFileChildren(rootRouteChildren)
220 ._addFileTypes<FileRouteTypes>()