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

routeTree.gen.ts

239 lines7.3 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 AbsoluteRouteImport } from './routes/absolute'
14import { Route as LinkPropsRouteImport } from './routes/linkProps'
15import { Route as ParamsRouteRouteImport } from './routes/params/route'
16import { Route as RelativeRouteImport } from './routes/relative'
17import { Route as SearchRouteRouteImport } from './routes/search/route'
18import { Route as ParamsParamsPlaceholderRouteImport } from './routes/params/$paramsPlaceholder'
19import { Route as SearchSearchPlaceholderRouteImport } from './routes/search/searchPlaceholder'
20​
21const IndexRoute = IndexRouteImport.update({
22 id: '/',
23 path: '/',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const AbsoluteRoute = AbsoluteRouteImport.update({
27 id: '/absolute',
28 path: '/absolute',
29 getParentRoute: () => rootRouteImport,
30} as any)
31const LinkPropsRoute = LinkPropsRouteImport.update({
32 id: '/linkProps',
33 path: '/linkProps',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const ParamsRouteRoute = ParamsRouteRouteImport.update({
37 id: '/params',
38 path: '/params',
39 getParentRoute: () => rootRouteImport,
40} as any)
41const RelativeRoute = RelativeRouteImport.update({
42 id: '/relative',
43 path: '/relative',
44 getParentRoute: () => rootRouteImport,
45} as any)
46const SearchRouteRoute = SearchRouteRouteImport.update({
47 id: '/search',
48 path: '/search',
49 getParentRoute: () => rootRouteImport,
50} as any)
51const ParamsParamsPlaceholderRoute = ParamsParamsPlaceholderRouteImport.update({
52 id: '/$paramsPlaceholder',
53 path: '/$paramsPlaceholder',
54 getParentRoute: () => ParamsRouteRoute,
55} as any)
56const SearchSearchPlaceholderRoute = SearchSearchPlaceholderRouteImport.update({
57 id: '/searchPlaceholder',
58 path: '/searchPlaceholder',
59 getParentRoute: () => SearchRouteRoute,
60} as any)
61​
62export interface FileRoutesByFullPath {
63 '/': typeof IndexRoute
64 '/params': typeof ParamsRouteRouteWithChildren
65 '/search': typeof SearchRouteRouteWithChildren
66 '/absolute': typeof AbsoluteRoute
67 '/linkProps': typeof LinkPropsRoute
68 '/relative': typeof RelativeRoute
69 '/params/$paramsPlaceholder': typeof ParamsParamsPlaceholderRoute
70 '/search/searchPlaceholder': typeof SearchSearchPlaceholderRoute
72export interface FileRoutesByTo {
73 '/': typeof IndexRoute
74 '/params': typeof ParamsRouteRouteWithChildren
75 '/search': typeof SearchRouteRouteWithChildren
76 '/absolute': typeof AbsoluteRoute
77 '/linkProps': typeof LinkPropsRoute
78 '/relative': typeof RelativeRoute
79 '/params/$paramsPlaceholder': typeof ParamsParamsPlaceholderRoute
80 '/search/searchPlaceholder': typeof SearchSearchPlaceholderRoute
82export interface FileRoutesById {
83 __root__: typeof rootRouteImport
84 '/': typeof IndexRoute
85 '/params': typeof ParamsRouteRouteWithChildren
86 '/search': typeof SearchRouteRouteWithChildren
87 '/absolute': typeof AbsoluteRoute
88 '/linkProps': typeof LinkPropsRoute
89 '/relative': typeof RelativeRoute
90 '/params/$paramsPlaceholder': typeof ParamsParamsPlaceholderRoute
91 '/search/searchPlaceholder': typeof SearchSearchPlaceholderRoute
93export interface FileRouteTypes {
94 fileRoutesByFullPath: FileRoutesByFullPath
95 fullPaths:
96 | '/'
97 | '/params'
98 | '/search'
99 | '/absolute'
100 | '/linkProps'
101 | '/relative'
102 | '/params/$paramsPlaceholder'
103 | '/search/searchPlaceholder'
104 fileRoutesByTo: FileRoutesByTo
105 to:
106 | '/'
107 | '/params'
108 | '/search'
109 | '/absolute'
110 | '/linkProps'
111 | '/relative'
112 | '/params/$paramsPlaceholder'
113 | '/search/searchPlaceholder'
114 id:
115 | '__root__'
116 | '/'
117 | '/params'
118 | '/search'
119 | '/absolute'
120 | '/linkProps'
121 | '/relative'
122 | '/params/$paramsPlaceholder'
123 | '/search/searchPlaceholder'
124 fileRoutesById: FileRoutesById
126export interface RootRouteChildren {
127 IndexRoute: typeof IndexRoute
128 ParamsRouteRoute: typeof ParamsRouteRouteWithChildren
129 SearchRouteRoute: typeof SearchRouteRouteWithChildren
130 AbsoluteRoute: typeof AbsoluteRoute
131 LinkPropsRoute: typeof LinkPropsRoute
132 RelativeRoute: typeof RelativeRoute
134​
135declare module '@tanstack/react-router' {
136 interface FileRoutesByPath {
137 '/': {
138 id: '/'
139 path: '/'
140 fullPath: '/'
141 preLoaderRoute: typeof IndexRouteImport
142 parentRoute: typeof rootRouteImport
143 }
144 '/absolute': {
145 id: '/absolute'
146 path: '/absolute'
147 fullPath: '/absolute'
148 preLoaderRoute: typeof AbsoluteRouteImport
149 parentRoute: typeof rootRouteImport
150 }
151 '/linkProps': {
152 id: '/linkProps'
153 path: '/linkProps'
154 fullPath: '/linkProps'
155 preLoaderRoute: typeof LinkPropsRouteImport
156 parentRoute: typeof rootRouteImport
157 }
158 '/params': {
159 id: '/params'
160 path: '/params'
161 fullPath: '/params'
162 preLoaderRoute: typeof ParamsRouteRouteImport
163 parentRoute: typeof rootRouteImport
164 }
165 '/relative': {
166 id: '/relative'
167 path: '/relative'
168 fullPath: '/relative'
169 preLoaderRoute: typeof RelativeRouteImport
170 parentRoute: typeof rootRouteImport
171 }
172 '/search': {
173 id: '/search'
174 path: '/search'
175 fullPath: '/search'
176 preLoaderRoute: typeof SearchRouteRouteImport
177 parentRoute: typeof rootRouteImport
178 }
179 '/params/$paramsPlaceholder': {
180 id: '/params/$paramsPlaceholder'
181 path: '/$paramsPlaceholder'
182 fullPath: '/params/$paramsPlaceholder'
183 preLoaderRoute: typeof ParamsParamsPlaceholderRouteImport
184 parentRoute: typeof ParamsRouteRoute
185 }
186 '/search/searchPlaceholder': {
187 id: '/search/searchPlaceholder'
188 path: '/searchPlaceholder'
189 fullPath: '/search/searchPlaceholder'
190 preLoaderRoute: typeof SearchSearchPlaceholderRouteImport
191 parentRoute: typeof SearchRouteRoute
192 }
193 }
195​
196interface ParamsRouteRouteChildren {
197 ParamsParamsPlaceholderRoute: typeof ParamsParamsPlaceholderRoute
199​
200const ParamsRouteRouteChildren: ParamsRouteRouteChildren = {
201 ParamsParamsPlaceholderRoute: ParamsParamsPlaceholderRoute,
203​
204const ParamsRouteRouteWithChildren = ParamsRouteRoute._addFileChildren(
205 ParamsRouteRouteChildren,
207​
208interface SearchRouteRouteChildren {
209 SearchSearchPlaceholderRoute: typeof SearchSearchPlaceholderRoute
211​
212const SearchRouteRouteChildren: SearchRouteRouteChildren = {
213 SearchSearchPlaceholderRoute: SearchSearchPlaceholderRoute,
215​
216const SearchRouteRouteWithChildren = SearchRouteRoute._addFileChildren(
217 SearchRouteRouteChildren,
219​
220const rootRouteChildren: RootRouteChildren = {
221 IndexRoute: IndexRoute,
222 ParamsRouteRoute: ParamsRouteRouteWithChildren,
223 SearchRouteRoute: SearchRouteRouteWithChildren,
224 AbsoluteRoute: AbsoluteRoute,
225 LinkPropsRoute: LinkPropsRoute,
226 RelativeRoute: RelativeRoute,
228export const routeTree = rootRouteImport
229 ._addFileChildren(rootRouteChildren)
230 ._addFileTypes<FileRouteTypes>()
231​
232import type { getRouter } from './router.tsx'
233import type { createStart } from '@tanstack/react-start'
234declare module '@tanstack/react-start' {
235 interface Register {
236 ssr: true
237 router: Awaited<ReturnType<typeof getRouter>>
238 }