|
8 | 8 | // You should NOT make any changes in this file as it will be overwritten. |
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 | | -import { Route as rootRouteImport } from "./routes/__root"; |
12 | | -import { Route as IndexRouteImport } from "./routes/index"; |
| 11 | +import { Route as rootRouteImport } from './routes/__root' |
| 12 | +import { Route as AboutRouteImport } from './routes/about' |
| 13 | +import { Route as IndexRouteImport } from './routes/index' |
13 | 14 |
|
| 15 | +const AboutRoute = AboutRouteImport.update({ |
| 16 | + id: '/about', |
| 17 | + path: '/about', |
| 18 | + getParentRoute: () => rootRouteImport, |
| 19 | +} as any) |
14 | 20 | const IndexRoute = IndexRouteImport.update({ |
15 | | - id: "/", |
16 | | - path: "/", |
| 21 | + id: '/', |
| 22 | + path: '/', |
17 | 23 | getParentRoute: () => rootRouteImport, |
18 | | -} as any); |
| 24 | +} as any) |
19 | 25 |
|
20 | 26 | export interface FileRoutesByFullPath { |
21 | | - "/": typeof IndexRoute; |
| 27 | + '/': typeof IndexRoute |
| 28 | + '/about': typeof AboutRoute |
22 | 29 | } |
23 | 30 | export interface FileRoutesByTo { |
24 | | - "/": typeof IndexRoute; |
| 31 | + '/': typeof IndexRoute |
| 32 | + '/about': typeof AboutRoute |
25 | 33 | } |
26 | 34 | export interface FileRoutesById { |
27 | | - __root__: typeof rootRouteImport; |
28 | | - "/": typeof IndexRoute; |
| 35 | + __root__: typeof rootRouteImport |
| 36 | + '/': typeof IndexRoute |
| 37 | + '/about': typeof AboutRoute |
29 | 38 | } |
30 | 39 | export interface FileRouteTypes { |
31 | | - fileRoutesByFullPath: FileRoutesByFullPath; |
32 | | - fullPaths: "/"; |
33 | | - fileRoutesByTo: FileRoutesByTo; |
34 | | - to: "/"; |
35 | | - id: "__root__" | "/"; |
36 | | - fileRoutesById: FileRoutesById; |
| 40 | + fileRoutesByFullPath: FileRoutesByFullPath |
| 41 | + fullPaths: '/' | '/about' |
| 42 | + fileRoutesByTo: FileRoutesByTo |
| 43 | + to: '/' | '/about' |
| 44 | + id: '__root__' | '/' | '/about' |
| 45 | + fileRoutesById: FileRoutesById |
37 | 46 | } |
38 | 47 | export interface RootRouteChildren { |
39 | | - IndexRoute: typeof IndexRoute; |
| 48 | + IndexRoute: typeof IndexRoute |
| 49 | + AboutRoute: typeof AboutRoute |
40 | 50 | } |
41 | 51 |
|
42 | | -declare module "@tanstack/react-router" { |
| 52 | +declare module '@tanstack/react-router' { |
43 | 53 | interface FileRoutesByPath { |
44 | | - "/": { |
45 | | - id: "/"; |
46 | | - path: "/"; |
47 | | - fullPath: "/"; |
48 | | - preLoaderRoute: typeof IndexRouteImport; |
49 | | - parentRoute: typeof rootRouteImport; |
50 | | - }; |
| 54 | + '/about': { |
| 55 | + id: '/about' |
| 56 | + path: '/about' |
| 57 | + fullPath: '/about' |
| 58 | + preLoaderRoute: typeof AboutRouteImport |
| 59 | + parentRoute: typeof rootRouteImport |
| 60 | + } |
| 61 | + '/': { |
| 62 | + id: '/' |
| 63 | + path: '/' |
| 64 | + fullPath: '/' |
| 65 | + preLoaderRoute: typeof IndexRouteImport |
| 66 | + parentRoute: typeof rootRouteImport |
| 67 | + } |
51 | 68 | } |
52 | 69 | } |
53 | 70 |
|
54 | 71 | const rootRouteChildren: RootRouteChildren = { |
55 | 72 | IndexRoute: IndexRoute, |
56 | | -}; |
| 73 | + AboutRoute: AboutRoute, |
| 74 | +} |
57 | 75 | export const routeTree = rootRouteImport |
58 | 76 | ._addFileChildren(rootRouteChildren) |
59 | | - ._addFileTypes<FileRouteTypes>(); |
| 77 | + ._addFileTypes<FileRouteTypes>() |
0 commit comments