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 PostsRouteImport } from './routes/posts'
13import { Route as LayoutRouteImport } from './routes/_layout'
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 LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
18import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
19import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
20​
21const PostsRoute = PostsRouteImport.update({
22 id: '/posts',
23 path: '/posts',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const LayoutRoute = LayoutRouteImport.update({
27 id: '/_layout',
28 getParentRoute: () => rootRouteImport,
29} as any)
30const IndexRoute = IndexRouteImport.update({
31 id: '/',
32 path: '/',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const PostsIndexRoute = PostsIndexRouteImport.update({
36 id: '/',
37 path: '/',
38 getParentRoute: () => PostsRoute,
39} as any)
40const PostsPostIdRoute = PostsPostIdRouteImport.update({
41 id: '/$postId',
42 path: '/$postId',
43 getParentRoute: () => PostsRoute,
44} as any)
45const LayoutLayout2Route = LayoutLayout2RouteImport.update({
46 id: '/_layout-2',
47 getParentRoute: () => LayoutRoute,
48} as any)
49const LayoutLayout2LayoutBRoute = LayoutLayout2LayoutBRouteImport.update({
50 id: '/layout-b',
51 path: '/layout-b',
52 getParentRoute: () => LayoutLayout2Route,
53} as any)
54const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
55 id: '/layout-a',
56 path: '/layout-a',
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 '/posts': {
118 id: '/posts'
119 path: '/posts'
120 fullPath: '/posts'
121 preLoaderRoute: typeof PostsRouteImport
122 parentRoute: typeof rootRouteImport
123 }
124 '/_layout': {
125 id: '/_layout'
126 path: ''
127 fullPath: ''
128 preLoaderRoute: typeof LayoutRouteImport
129 parentRoute: typeof rootRouteImport
130 }
131 '/': {
132 id: '/'
133 path: '/'
134 fullPath: '/'
135 preLoaderRoute: typeof IndexRouteImport
136 parentRoute: typeof rootRouteImport
137 }
138 '/posts/': {
139 id: '/posts/'
140 path: '/'
141 fullPath: '/posts/'
142 preLoaderRoute: typeof PostsIndexRouteImport
143 parentRoute: typeof PostsRoute
144 }
145 '/posts/$postId': {
146 id: '/posts/$postId'
147 path: '/$postId'
148 fullPath: '/posts/$postId'
149 preLoaderRoute: typeof PostsPostIdRouteImport
150 parentRoute: typeof PostsRoute
151 }
152 '/_layout/_layout-2': {
153 id: '/_layout/_layout-2'
154 path: ''
155 fullPath: ''
156 preLoaderRoute: typeof LayoutLayout2RouteImport
157 parentRoute: typeof LayoutRoute
158 }
159 '/_layout/_layout-2/layout-b': {
160 id: '/_layout/_layout-2/layout-b'
161 path: '/layout-b'
162 fullPath: '/layout-b'
163 preLoaderRoute: typeof LayoutLayout2LayoutBRouteImport
164 parentRoute: typeof LayoutLayout2Route
165 }
166 '/_layout/_layout-2/layout-a': {
167 id: '/_layout/_layout-2/layout-a'
168 path: '/layout-a'
169 fullPath: '/layout-a'
170 preLoaderRoute: typeof LayoutLayout2LayoutARouteImport
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>()