|
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 LoginRouteImport } from './routes/login' |
13 | | -import { Route as IndexRouteImport } from './routes/index' |
| 11 | +import { Route as rootRouteImport } from './routes/__root'; |
| 12 | +import { Route as LoginRouteImport } from './routes/login'; |
| 13 | +import { Route as IndexRouteImport } from './routes/index'; |
14 | 14 |
|
15 | 15 | const LoginRoute = LoginRouteImport.update({ |
16 | 16 | id: '/login', |
17 | 17 | path: '/login', |
18 | 18 | getParentRoute: () => rootRouteImport, |
19 | | -} as any) |
| 19 | +} as any); |
20 | 20 | const IndexRoute = IndexRouteImport.update({ |
21 | 21 | id: '/', |
22 | 22 | path: '/', |
23 | 23 | getParentRoute: () => rootRouteImport, |
24 | | -} as any) |
| 24 | +} as any); |
25 | 25 |
|
26 | 26 | export interface FileRoutesByFullPath { |
27 | | - '/': typeof IndexRoute |
28 | | - '/login': typeof LoginRoute |
| 27 | + '/': typeof IndexRoute; |
| 28 | + '/login': typeof LoginRoute; |
29 | 29 | } |
30 | 30 | export interface FileRoutesByTo { |
31 | | - '/': typeof IndexRoute |
32 | | - '/login': typeof LoginRoute |
| 31 | + '/': typeof IndexRoute; |
| 32 | + '/login': typeof LoginRoute; |
33 | 33 | } |
34 | 34 | export interface FileRoutesById { |
35 | | - __root__: typeof rootRouteImport |
36 | | - '/': typeof IndexRoute |
37 | | - '/login': typeof LoginRoute |
| 35 | + __root__: typeof rootRouteImport; |
| 36 | + '/': typeof IndexRoute; |
| 37 | + '/login': typeof LoginRoute; |
38 | 38 | } |
39 | 39 | export interface FileRouteTypes { |
40 | | - fileRoutesByFullPath: FileRoutesByFullPath |
41 | | - fullPaths: '/' | '/login' |
42 | | - fileRoutesByTo: FileRoutesByTo |
43 | | - to: '/' | '/login' |
44 | | - id: '__root__' | '/' | '/login' |
45 | | - fileRoutesById: FileRoutesById |
| 40 | + fileRoutesByFullPath: FileRoutesByFullPath; |
| 41 | + fullPaths: '/' | '/login'; |
| 42 | + fileRoutesByTo: FileRoutesByTo; |
| 43 | + to: '/' | '/login'; |
| 44 | + id: '__root__' | '/' | '/login'; |
| 45 | + fileRoutesById: FileRoutesById; |
46 | 46 | } |
47 | 47 | export interface RootRouteChildren { |
48 | | - IndexRoute: typeof IndexRoute |
49 | | - LoginRoute: typeof LoginRoute |
| 48 | + IndexRoute: typeof IndexRoute; |
| 49 | + LoginRoute: typeof LoginRoute; |
50 | 50 | } |
51 | 51 |
|
52 | 52 | declare module '@tanstack/react-router' { |
53 | 53 | interface FileRoutesByPath { |
54 | 54 | '/login': { |
55 | | - id: '/login' |
56 | | - path: '/login' |
57 | | - fullPath: '/login' |
58 | | - preLoaderRoute: typeof LoginRouteImport |
59 | | - parentRoute: typeof rootRouteImport |
60 | | - } |
| 55 | + id: '/login'; |
| 56 | + path: '/login'; |
| 57 | + fullPath: '/login'; |
| 58 | + preLoaderRoute: typeof LoginRouteImport; |
| 59 | + parentRoute: typeof rootRouteImport; |
| 60 | + }; |
61 | 61 | '/': { |
62 | | - id: '/' |
63 | | - path: '/' |
64 | | - fullPath: '/' |
65 | | - preLoaderRoute: typeof IndexRouteImport |
66 | | - parentRoute: typeof rootRouteImport |
67 | | - } |
| 62 | + id: '/'; |
| 63 | + path: '/'; |
| 64 | + fullPath: '/'; |
| 65 | + preLoaderRoute: typeof IndexRouteImport; |
| 66 | + parentRoute: typeof rootRouteImport; |
| 67 | + }; |
68 | 68 | } |
69 | 69 | } |
70 | 70 |
|
71 | 71 | const rootRouteChildren: RootRouteChildren = { |
72 | 72 | IndexRoute: IndexRoute, |
73 | 73 | LoginRoute: LoginRoute, |
74 | | -} |
| 74 | +}; |
75 | 75 | export const routeTree = rootRouteImport |
76 | 76 | ._addFileChildren(rootRouteChildren) |
77 | | - ._addFileTypes<FileRouteTypes>() |
| 77 | + ._addFileTypes<FileRouteTypes>(); |
78 | 78 |
|
79 | | -import type { getRouter } from './router.tsx' |
80 | | -import type { createStart } from '@tanstack/react-start' |
| 79 | +import type { getRouter } from './router.tsx'; |
| 80 | +import type { createStart } from '@tanstack/react-start'; |
81 | 81 | declare module '@tanstack/react-start' { |
82 | 82 | interface Register { |
83 | | - ssr: true |
84 | | - router: Awaited<ReturnType<typeof getRouter>> |
| 83 | + ssr: true; |
| 84 | + router: Awaited<ReturnType<typeof getRouter>>; |
85 | 85 | } |
86 | 86 | } |
0 commit comments