Open History to see the last commit
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 ServerFunctionCustomErrorRouteImport } from './routes/server-function/custom-error'
14import { Route as ServerFunctionLateRawStreamRouteImport } from './routes/server-function/late-raw-stream'
15import { Route as ServerFunctionNestedRouteImport } from './routes/server-function/nested'
16import { Route as SsrDataOnlyRouteImport } from './routes/ssr/data-only'
17import { Route as SsrNestedRouteImport } from './routes/ssr/nested'
18import { Route as SsrStreamRouteImport } from './routes/ssr/stream'
19β
20const IndexRoute = IndexRouteImport.update({
21 id: '/',
22 path: '/',
23 getParentRoute: () => rootRouteImport,
24} as any)
25const ServerFunctionCustomErrorRoute =
26 ServerFunctionCustomErrorRouteImport.update({
27 id: '/server-function/custom-error',
28 path: '/server-function/custom-error',
29 getParentRoute: () => rootRouteImport,
30 } as any)
31const ServerFunctionLateRawStreamRoute =
32 ServerFunctionLateRawStreamRouteImport.update({
33 id: '/server-function/late-raw-stream',
34 path: '/server-function/late-raw-stream',
35 getParentRoute: () => rootRouteImport,
36 } as any)
37const ServerFunctionNestedRoute = ServerFunctionNestedRouteImport.update({
38 id: '/server-function/nested',
39 path: '/server-function/nested',
40 getParentRoute: () => rootRouteImport,
41} as any)
42const SsrDataOnlyRoute = SsrDataOnlyRouteImport.update({
43 id: '/ssr/data-only',
44 path: '/ssr/data-only',
45 getParentRoute: () => rootRouteImport,
46} as any)
47const SsrNestedRoute = SsrNestedRouteImport.update({
48 id: '/ssr/nested',
49 path: '/ssr/nested',
50 getParentRoute: () => rootRouteImport,
51} as any)
52const SsrStreamRoute = SsrStreamRouteImport.update({
53 id: '/ssr/stream',
54 path: '/ssr/stream',
55 getParentRoute: () => rootRouteImport,
56} as any)
57β
58export interface FileRoutesByFullPath {
59 '/': typeof IndexRoute
60 '/server-function/custom-error': typeof ServerFunctionCustomErrorRoute
61 '/server-function/late-raw-stream': typeof ServerFunctionLateRawStreamRoute
62 '/server-function/nested': typeof ServerFunctionNestedRoute
63 '/ssr/data-only': typeof SsrDataOnlyRoute
64 '/ssr/nested': typeof SsrNestedRoute
65 '/ssr/stream': typeof SsrStreamRoute
66}
67export interface FileRoutesByTo {
68 '/': typeof IndexRoute
69 '/server-function/custom-error': typeof ServerFunctionCustomErrorRoute
70 '/server-function/late-raw-stream': typeof ServerFunctionLateRawStreamRoute
71 '/server-function/nested': typeof ServerFunctionNestedRoute
72 '/ssr/data-only': typeof SsrDataOnlyRoute
73 '/ssr/nested': typeof SsrNestedRoute
74 '/ssr/stream': typeof SsrStreamRoute
75}
76export interface FileRoutesById {
77 __root__: typeof rootRouteImport
78 '/': typeof IndexRoute
79 '/server-function/custom-error': typeof ServerFunctionCustomErrorRoute
80 '/server-function/late-raw-stream': typeof ServerFunctionLateRawStreamRoute
81 '/server-function/nested': typeof ServerFunctionNestedRoute
82 '/ssr/data-only': typeof SsrDataOnlyRoute
83 '/ssr/nested': typeof SsrNestedRoute
84 '/ssr/stream': typeof SsrStreamRoute
85}
86export interface FileRouteTypes {
87 fileRoutesByFullPath: FileRoutesByFullPath
88 fullPaths:
89 | '/'
90 | '/server-function/custom-error'
91 | '/server-function/late-raw-stream'
92 | '/server-function/nested'
93 | '/ssr/data-only'
94 | '/ssr/nested'
95 | '/ssr/stream'
96 fileRoutesByTo: FileRoutesByTo
97 to:
98 | '/'
99 | '/server-function/custom-error'
100 | '/server-function/late-raw-stream'
101 | '/server-function/nested'
102 | '/ssr/data-only'
103 | '/ssr/nested'
104 | '/ssr/stream'
105 id:
106 | '__root__'
107 | '/'
108 | '/server-function/custom-error'
109 | '/server-function/late-raw-stream'
110 | '/server-function/nested'
111 | '/ssr/data-only'
112 | '/ssr/nested'
113 | '/ssr/stream'
114 fileRoutesById: FileRoutesById
115}
116export interface RootRouteChildren {
117 IndexRoute: typeof IndexRoute
118 ServerFunctionCustomErrorRoute: typeof ServerFunctionCustomErrorRoute
119 ServerFunctionLateRawStreamRoute: typeof ServerFunctionLateRawStreamRoute
120 ServerFunctionNestedRoute: typeof ServerFunctionNestedRoute
121 SsrDataOnlyRoute: typeof SsrDataOnlyRoute
122 SsrNestedRoute: typeof SsrNestedRoute
123 SsrStreamRoute: typeof SsrStreamRoute
124}
125β
126declare module '@tanstack/react-router' {
127 interface FileRoutesByPath {
128 '/': {
129 id: '/'
130 path: '/'
131 fullPath: '/'
132 preLoaderRoute: typeof IndexRouteImport
133 parentRoute: typeof rootRouteImport
134 }
135 '/server-function/custom-error': {
136 id: '/server-function/custom-error'
137 path: '/server-function/custom-error'
138 fullPath: '/server-function/custom-error'
139 preLoaderRoute: typeof ServerFunctionCustomErrorRouteImport
140 parentRoute: typeof rootRouteImport
141 }
142 '/server-function/late-raw-stream': {
143 id: '/server-function/late-raw-stream'
144 path: '/server-function/late-raw-stream'
145 fullPath: '/server-function/late-raw-stream'
146 preLoaderRoute: typeof ServerFunctionLateRawStreamRouteImport
147 parentRoute: typeof rootRouteImport
148 }
149 '/server-function/nested': {
150 id: '/server-function/nested'
151 path: '/server-function/nested'
152 fullPath: '/server-function/nested'
153 preLoaderRoute: typeof ServerFunctionNestedRouteImport
154 parentRoute: typeof rootRouteImport
155 }
156 '/ssr/data-only': {
157 id: '/ssr/data-only'
158 path: '/ssr/data-only'
159 fullPath: '/ssr/data-only'
160 preLoaderRoute: typeof SsrDataOnlyRouteImport
161 parentRoute: typeof rootRouteImport
162 }
163 '/ssr/nested': {
164 id: '/ssr/nested'
165 path: '/ssr/nested'
166 fullPath: '/ssr/nested'
167 preLoaderRoute: typeof SsrNestedRouteImport
168 parentRoute: typeof rootRouteImport
169 }
170 '/ssr/stream': {
171 id: '/ssr/stream'
172 path: '/ssr/stream'
173 fullPath: '/ssr/stream'
174 preLoaderRoute: typeof SsrStreamRouteImport
175 parentRoute: typeof rootRouteImport
176 }
177 }
178}
179β
180const rootRouteChildren: RootRouteChildren = {
181 IndexRoute: IndexRoute,
182 ServerFunctionCustomErrorRoute: ServerFunctionCustomErrorRoute,
183 ServerFunctionLateRawStreamRoute: ServerFunctionLateRawStreamRoute,
184 ServerFunctionNestedRoute: ServerFunctionNestedRoute,
185 SsrDataOnlyRoute: SsrDataOnlyRoute,
186 SsrNestedRoute: SsrNestedRoute,
187 SsrStreamRoute: SsrStreamRoute,
188}
189export const routeTree = rootRouteImport
190 ._addFileChildren(rootRouteChildren)
191 ._addFileTypes<FileRouteTypes>()
192β
193import type { getRouter } from './router.tsx'
194import type { startInstance } from './start.tsx'
195declare module '@tanstack/react-start' {
196 interface Register {
197 ssr: true
198 router: Awaited<ReturnType<typeof getRouter>>
199 config: Awaited<ReturnType<typeof startInstance.getOptions>>
200 }
201}