|
9 | 9 | // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. |
10 | 10 |
|
11 | 11 | import { Route as rootRouteImport } from './routes/__root' |
| 12 | +import { Route as SearchRouteImport } from './routes/search' |
12 | 13 | import { Route as IndexRouteImport } from './routes/index' |
13 | 14 | import { Route as PageIdRouteImport } from './routes/page.$id' |
14 | 15 | import { Route as NestedARouteImport } from './routes/nested/$a' |
@@ -38,6 +39,11 @@ import { Route as NestedABCDEFGHIJKLMNOPQRSTUVWXRouteImport } from './routes/nes |
38 | 39 | import { Route as NestedABCDEFGHIJKLMNOPQRSTUVWXYRouteImport } from './routes/nested/$a.$b.$c.$d.$e.$f.$g.$h.$i.$j.$k.$l.$m.$n.$o.$p.$q.$r.$s.$t.$u.$v.$w.$x.$y' |
39 | 40 | import { Route as NestedABCDEFGHIJKLMNOPQRSTUVWXYZRouteImport } from './routes/nested/$a.$b.$c.$d.$e.$f.$g.$h.$i.$j.$k.$l.$m.$n.$o.$p.$q.$r.$s.$t.$u.$v.$w.$x.$y.$z' |
40 | 41 |
|
| 42 | +const SearchRoute = SearchRouteImport.update({ |
| 43 | + id: '/search', |
| 44 | + path: '/search', |
| 45 | + getParentRoute: () => rootRouteImport, |
| 46 | +} as any) |
41 | 47 | const IndexRoute = IndexRouteImport.update({ |
42 | 48 | id: '/', |
43 | 49 | path: '/', |
@@ -190,6 +196,7 @@ const NestedABCDEFGHIJKLMNOPQRSTUVWXYZRoute = |
190 | 196 |
|
191 | 197 | export interface FileRoutesByFullPath { |
192 | 198 | '/': typeof IndexRoute |
| 199 | + '/search': typeof SearchRoute |
193 | 200 | '/nested/$a': typeof NestedARouteWithChildren |
194 | 201 | '/page/$id': typeof PageIdRoute |
195 | 202 | '/nested/$a/$b': typeof NestedABRouteWithChildren |
@@ -220,6 +227,7 @@ export interface FileRoutesByFullPath { |
220 | 227 | } |
221 | 228 | export interface FileRoutesByTo { |
222 | 229 | '/': typeof IndexRoute |
| 230 | + '/search': typeof SearchRoute |
223 | 231 | '/nested/$a': typeof NestedARouteWithChildren |
224 | 232 | '/page/$id': typeof PageIdRoute |
225 | 233 | '/nested/$a/$b': typeof NestedABRouteWithChildren |
@@ -251,6 +259,7 @@ export interface FileRoutesByTo { |
251 | 259 | export interface FileRoutesById { |
252 | 260 | __root__: typeof rootRouteImport |
253 | 261 | '/': typeof IndexRoute |
| 262 | + '/search': typeof SearchRoute |
254 | 263 | '/nested/$a': typeof NestedARouteWithChildren |
255 | 264 | '/page/$id': typeof PageIdRoute |
256 | 265 | '/nested/$a/$b': typeof NestedABRouteWithChildren |
@@ -283,6 +292,7 @@ export interface FileRouteTypes { |
283 | 292 | fileRoutesByFullPath: FileRoutesByFullPath |
284 | 293 | fullPaths: |
285 | 294 | | '/' |
| 295 | + | '/search' |
286 | 296 | | '/nested/$a' |
287 | 297 | | '/page/$id' |
288 | 298 | | '/nested/$a/$b' |
@@ -313,6 +323,7 @@ export interface FileRouteTypes { |
313 | 323 | fileRoutesByTo: FileRoutesByTo |
314 | 324 | to: |
315 | 325 | | '/' |
| 326 | + | '/search' |
316 | 327 | | '/nested/$a' |
317 | 328 | | '/page/$id' |
318 | 329 | | '/nested/$a/$b' |
@@ -343,6 +354,7 @@ export interface FileRouteTypes { |
343 | 354 | id: |
344 | 355 | | '__root__' |
345 | 356 | | '/' |
| 357 | + | '/search' |
346 | 358 | | '/nested/$a' |
347 | 359 | | '/page/$id' |
348 | 360 | | '/nested/$a/$b' |
@@ -374,12 +386,20 @@ export interface FileRouteTypes { |
374 | 386 | } |
375 | 387 | export interface RootRouteChildren { |
376 | 388 | IndexRoute: typeof IndexRoute |
| 389 | + SearchRoute: typeof SearchRoute |
377 | 390 | NestedARoute: typeof NestedARouteWithChildren |
378 | 391 | PageIdRoute: typeof PageIdRoute |
379 | 392 | } |
380 | 393 |
|
381 | 394 | declare module '@tanstack/react-router' { |
382 | 395 | interface FileRoutesByPath { |
| 396 | + '/search': { |
| 397 | + id: '/search' |
| 398 | + path: '/search' |
| 399 | + fullPath: '/search' |
| 400 | + preLoaderRoute: typeof SearchRouteImport |
| 401 | + parentRoute: typeof rootRouteImport |
| 402 | + } |
383 | 403 | '/': { |
384 | 404 | id: '/' |
385 | 405 | path: '/' |
@@ -903,6 +923,7 @@ const NestedARouteWithChildren = |
903 | 923 |
|
904 | 924 | const rootRouteChildren: RootRouteChildren = { |
905 | 925 | IndexRoute: IndexRoute, |
| 926 | + SearchRoute: SearchRoute, |
906 | 927 | NestedARoute: NestedARouteWithChildren, |
907 | 928 | PageIdRoute: PageIdRoute, |
908 | 929 | } |
|
0 commit comments