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 RelativeRouteImport } from './routes/relative'
13import { Route as LinkPropsRouteImport } from './routes/linkProps'
14import { Route as AbsoluteRouteImport } from './routes/absolute'
15import { Route as SearchRouteRouteImport } from './routes/search/route'
16import { Route as ParamsRouteRouteImport } from './routes/params/route'
17import { Route as IndexRouteImport } from './routes/index'
18import { Route as SearchSearchPlaceholderRouteImport } from './routes/search/searchPlaceholder'
19import { Route as ParamsParamsPlaceholderRouteImport } from './routes/params/$paramsPlaceholder'
20​
21const RelativeRoute = RelativeRouteImport.update({
22 id: '/relative',
23 path: '/relative',
24 getParentRoute: () => rootRouteImport,
25} as any)
26const LinkPropsRoute = LinkPropsRouteImport.update({
27 id: '/linkProps',
28 path: '/linkProps',
29 getParentRoute: () => rootRouteImport,
30} as any)
31const AbsoluteRoute = AbsoluteRouteImport.update({
32 id: '/absolute',
33 path: '/absolute',
34 getParentRoute: () => rootRouteImport,
35} as any)
36const SearchRouteRoute = SearchRouteRouteImport.update({
37 id: '/search',
38 path: '/search',
39 getParentRoute: () => rootRouteImport,
40} as any)
41const ParamsRouteRoute = ParamsRouteRouteImport.update({
42 id: '/params',
43 path: '/params',
44 getParentRoute: () => rootRouteImport,
45} as any)
46const IndexRoute = IndexRouteImport.update({
47 id: '/',
48 path: '/',
49 getParentRoute: () => rootRouteImport,
50} as any)
51const SearchSearchPlaceholderRoute = SearchSearchPlaceholderRouteImport.update({
52 id: '/searchPlaceholder',
53 path: '/searchPlaceholder',
54 getParentRoute: () => SearchRouteRoute,
55} as any)
56const ParamsParamsPlaceholderRoute = ParamsParamsPlaceholderRouteImport.update({
57 id: '/$paramsPlaceholder',
58 path: '/$paramsPlaceholder',
59 getParentRoute: () => ParamsRouteRoute,
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 '/relative': {
138 id: '/relative'
139 path: '/relative'
140 fullPath: '/relative'
141 preLoaderRoute: typeof RelativeRouteImport
142 parentRoute: typeof rootRouteImport
143 }
144 '/linkProps': {
145 id: '/linkProps'
146 path: '/linkProps'
147 fullPath: '/linkProps'
148 preLoaderRoute: typeof LinkPropsRouteImport
149 parentRoute: typeof rootRouteImport
150 }
151 '/absolute': {
152 id: '/absolute'
153 path: '/absolute'
154 fullPath: '/absolute'
155 preLoaderRoute: typeof AbsoluteRouteImport
156 parentRoute: typeof rootRouteImport
157 }
158 '/search': {
159 id: '/search'
160 path: '/search'
161 fullPath: '/search'
162 preLoaderRoute: typeof SearchRouteRouteImport
163 parentRoute: typeof rootRouteImport
164 }
165 '/params': {
166 id: '/params'
167 path: '/params'
168 fullPath: '/params'
169 preLoaderRoute: typeof ParamsRouteRouteImport
170 parentRoute: typeof rootRouteImport
171 }
172 '/': {
173 id: '/'
174 path: '/'
175 fullPath: '/'
176 preLoaderRoute: typeof IndexRouteImport
177 parentRoute: typeof rootRouteImport
178 }
179 '/search/searchPlaceholder': {
180 id: '/search/searchPlaceholder'
181 path: '/searchPlaceholder'
182 fullPath: '/search/searchPlaceholder'
183 preLoaderRoute: typeof SearchSearchPlaceholderRouteImport
184 parentRoute: typeof SearchRouteRoute
185 }
186 '/params/$paramsPlaceholder': {
187 id: '/params/$paramsPlaceholder'
188 path: '/$paramsPlaceholder'
189 fullPath: '/params/$paramsPlaceholder'
190 preLoaderRoute: typeof ParamsParamsPlaceholderRouteImport
191 parentRoute: typeof ParamsRouteRoute
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 }