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

routeTree.gen.ts

230 lines7.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 PathlessLayoutRouteImport } from './routes/_pathlessLayout'
14import { Route as PostsRouteRouteImport } from './routes/posts.route'
15import { Route as PathlessLayoutNestedLayoutRouteImport } from './routes/_pathlessLayout/_nested-layout'
16import { Route as PostsIndexRouteImport } from './routes/posts.index'
17import { Route as PostsPostIdRouteImport } from './routes/posts.$postId'
18import { Route as PathlessLayoutNestedLayoutRouteARouteImport } from './routes/_pathlessLayout/_nested-layout/route-a'
19import { Route as PathlessLayoutNestedLayoutRouteBRouteImport } from './routes/_pathlessLayout/_nested-layout/route-b'
20​
21const IndexRoute = IndexRouteImport.update({
22 id: '/',
23 path: '/',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const PathlessLayoutRoute = PathlessLayoutRouteImport.update({
27 id: '/_pathlessLayout',
28 getParentRoute: () => rootRouteImport,
29} as any)
30const PostsRouteRoute = PostsRouteRouteImport.update({
31 id: '/posts',
32 path: '/posts',
33 getParentRoute: () => rootRouteImport,
34} as any)
35const PathlessLayoutNestedLayoutRoute =
36 PathlessLayoutNestedLayoutRouteImport.update({
37 id: '/_nested-layout',
38 getParentRoute: () => PathlessLayoutRoute,
39 } as any)
40const PostsIndexRoute = PostsIndexRouteImport.update({
41 id: '/',
42 path: '/',
43 getParentRoute: () => PostsRouteRoute,
44} as any)
45const PostsPostIdRoute = PostsPostIdRouteImport.update({
46 id: '/$postId',
47 path: '/$postId',
48 getParentRoute: () => PostsRouteRoute,
49} as any)
50const PathlessLayoutNestedLayoutRouteARoute =
51 PathlessLayoutNestedLayoutRouteARouteImport.update({
52 id: '/route-a',
53 path: '/route-a',
54 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
55 } as any)
56const PathlessLayoutNestedLayoutRouteBRoute =
57 PathlessLayoutNestedLayoutRouteBRouteImport.update({
58 id: '/route-b',
59 path: '/route-b',
60 getParentRoute: () => PathlessLayoutNestedLayoutRoute,
61 } as any)
62​
63export interface FileRoutesByFullPath {
64 '/': typeof IndexRoute
65 '/posts': typeof PostsRouteRouteWithChildren
66 '/posts/$postId': typeof PostsPostIdRoute
67 '/posts/': typeof PostsIndexRoute
68 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
69 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
71export interface FileRoutesByTo {
72 '/': typeof IndexRoute
73 '/posts/$postId': typeof PostsPostIdRoute
74 '/posts': typeof PostsIndexRoute
75 '/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
76 '/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
78export interface FileRoutesById {
79 __root__: typeof rootRouteImport
80 '/': typeof IndexRoute
81 '/posts': typeof PostsRouteRouteWithChildren
82 '/_pathlessLayout': typeof PathlessLayoutRouteWithChildren
83 '/_pathlessLayout/_nested-layout': typeof PathlessLayoutNestedLayoutRouteWithChildren
84 '/posts/$postId': typeof PostsPostIdRoute
85 '/posts/': typeof PostsIndexRoute
86 '/_pathlessLayout/_nested-layout/route-a': typeof PathlessLayoutNestedLayoutRouteARoute
87 '/_pathlessLayout/_nested-layout/route-b': typeof PathlessLayoutNestedLayoutRouteBRoute
89export interface FileRouteTypes {
90 fileRoutesByFullPath: FileRoutesByFullPath
91 fullPaths:
92 | '/'
93 | '/posts'
94 | '/posts/$postId'
95 | '/posts/'
96 | '/route-a'
97 | '/route-b'
98 fileRoutesByTo: FileRoutesByTo
99 to: '/' | '/posts/$postId' | '/posts' | '/route-a' | '/route-b'
100 id:
101 | '__root__'
102 | '/'
103 | '/posts'
104 | '/_pathlessLayout'
105 | '/_pathlessLayout/_nested-layout'
106 | '/posts/$postId'
107 | '/posts/'
108 | '/_pathlessLayout/_nested-layout/route-a'
109 | '/_pathlessLayout/_nested-layout/route-b'
110 fileRoutesById: FileRoutesById
112export interface RootRouteChildren {
113 IndexRoute: typeof IndexRoute
114 PostsRouteRoute: typeof PostsRouteRouteWithChildren
115 PathlessLayoutRoute: typeof PathlessLayoutRouteWithChildren
117​
118declare module '@tanstack/react-router' {
119 interface FileRoutesByPath {
120 '/': {
121 id: '/'
122 path: '/'
123 fullPath: '/'
124 preLoaderRoute: typeof IndexRouteImport
125 parentRoute: typeof rootRouteImport
126 }
127 '/_pathlessLayout': {
128 id: '/_pathlessLayout'
129 path: ''
130 fullPath: '/'
131 preLoaderRoute: typeof PathlessLayoutRouteImport
132 parentRoute: typeof rootRouteImport
133 }
134 '/posts': {
135 id: '/posts'
136 path: '/posts'
137 fullPath: '/posts'
138 preLoaderRoute: typeof PostsRouteRouteImport
139 parentRoute: typeof rootRouteImport
140 }
141 '/_pathlessLayout/_nested-layout': {
142 id: '/_pathlessLayout/_nested-layout'
143 path: ''
144 fullPath: '/'
145 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteImport
146 parentRoute: typeof PathlessLayoutRoute
147 }
148 '/posts/': {
149 id: '/posts/'
150 path: '/'
151 fullPath: '/posts/'
152 preLoaderRoute: typeof PostsIndexRouteImport
153 parentRoute: typeof PostsRouteRoute
154 }
155 '/posts/$postId': {
156 id: '/posts/$postId'
157 path: '/$postId'
158 fullPath: '/posts/$postId'
159 preLoaderRoute: typeof PostsPostIdRouteImport
160 parentRoute: typeof PostsRouteRoute
161 }
162 '/_pathlessLayout/_nested-layout/route-a': {
163 id: '/_pathlessLayout/_nested-layout/route-a'
164 path: '/route-a'
165 fullPath: '/route-a'
166 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteARouteImport
167 parentRoute: typeof PathlessLayoutNestedLayoutRoute
168 }
169 '/_pathlessLayout/_nested-layout/route-b': {
170 id: '/_pathlessLayout/_nested-layout/route-b'
171 path: '/route-b'
172 fullPath: '/route-b'
173 preLoaderRoute: typeof PathlessLayoutNestedLayoutRouteBRouteImport
174 parentRoute: typeof PathlessLayoutNestedLayoutRoute
175 }
176 }
178​
179interface PostsRouteRouteChildren {
180 PostsPostIdRoute: typeof PostsPostIdRoute
181 PostsIndexRoute: typeof PostsIndexRoute
183​
184const PostsRouteRouteChildren: PostsRouteRouteChildren = {
185 PostsPostIdRoute: PostsPostIdRoute,
186 PostsIndexRoute: PostsIndexRoute,
188​
189const PostsRouteRouteWithChildren = PostsRouteRoute._addFileChildren(
190 PostsRouteRouteChildren,
192​
193interface PathlessLayoutNestedLayoutRouteChildren {
194 PathlessLayoutNestedLayoutRouteARoute: typeof PathlessLayoutNestedLayoutRouteARoute
195 PathlessLayoutNestedLayoutRouteBRoute: typeof PathlessLayoutNestedLayoutRouteBRoute
197​
198const PathlessLayoutNestedLayoutRouteChildren: PathlessLayoutNestedLayoutRouteChildren =
199 {
200 PathlessLayoutNestedLayoutRouteARoute:
201 PathlessLayoutNestedLayoutRouteARoute,
202 PathlessLayoutNestedLayoutRouteBRoute:
203 PathlessLayoutNestedLayoutRouteBRoute,
204 }
205​
206const PathlessLayoutNestedLayoutRouteWithChildren =
207 PathlessLayoutNestedLayoutRoute._addFileChildren(
208 PathlessLayoutNestedLayoutRouteChildren,
209 )
210​
211interface PathlessLayoutRouteChildren {
212 PathlessLayoutNestedLayoutRoute: typeof PathlessLayoutNestedLayoutRouteWithChildren
214​
215const PathlessLayoutRouteChildren: PathlessLayoutRouteChildren = {
216 PathlessLayoutNestedLayoutRoute: PathlessLayoutNestedLayoutRouteWithChildren,
218​
219const PathlessLayoutRouteWithChildren = PathlessLayoutRoute._addFileChildren(
220 PathlessLayoutRouteChildren,
222​
223const rootRouteChildren: RootRouteChildren = {
224 IndexRoute: IndexRoute,
225 PostsRouteRoute: PostsRouteRouteWithChildren,
226 PathlessLayoutRoute: PathlessLayoutRouteWithChildren,
228export const routeTree = rootRouteImport
229 ._addFileChildren(rootRouteChildren)
230 ._addFileTypes<FileRouteTypes>()