|
10 | 10 |
|
11 | 11 | // Import Routes |
12 | 12 |
|
13 | | -import { Route as rootRoute } from './routes/__root' |
14 | | -import { Route as IndexImport } from './routes/index' |
15 | | -import { Route as JoinIndexImport } from './routes/join/index' |
16 | | -import { Route as WorkspaceWorkspaceIdImpo./routes/joinworkspace/$workspaceId' |
| 13 | +import { Route as rootRoute } from "./routes/__root"; |
| 14 | +import { Route as IndexImport } from "./routes/index"; |
| 15 | +import { Route as JoinIndexImport } from "./routes/join/index"; |
| 16 | +import { Route as WorkspaceWorkspaceIdImport } from "./routes/joinworkspace/$workspaceId"; |
17 | 17 |
|
18 | 18 | // Create/Update Routes |
19 | 19 |
|
20 | 20 | const IndexRoute = IndexImport.update({ |
21 | | - id: '/', |
22 | | - path: '/', |
| 21 | + id: "/", |
| 22 | + path: "/", |
23 | 23 | getParentRoute: () => rootRoute, |
24 | | -} as any) |
| 24 | +} as any); |
25 | 25 |
|
26 | 26 | const JoinIndexRoute = JoinIndexImport.update({ |
27 | | - id: '/join/', |
28 | | - path: '/join/', |
| 27 | + id: "/join/", |
| 28 | + path: "/join/", |
29 | 29 | getParentRoute: () => rootRoute, |
30 | | -} as any) |
| 30 | +} as any); |
31 | 31 |
|
32 | 32 | const WorkspaceWorkspaceIdRoute = WorkspaceWorkspaceIdImport.update({ |
33 | | - id: '/workspace/$workspaceId', |
34 | | - path: '/workspace/$workspaceId', |
| 33 | + id: "/workspace/$workspaceId", |
| 34 | + path: "/workspace/$workspaceId", |
35 | 35 | getParentRoute: () => rootRoute, |
36 | | -} as any) |
| 36 | +} as any); |
37 | 37 |
|
38 | 38 | // Populate the FileRoutesByPath interface |
39 | 39 |
|
40 | | -declare module '@tanstack/react-router' { |
| 40 | +declare module "@tanstack/react-router" { |
41 | 41 | interface FileRoutesByPath { |
42 | | - '/': { |
43 | | - id: '/' |
44 | | - path: '/' |
45 | | - fullPath: '/' |
46 | | - preLoaderRoute: typeof IndexImport |
47 | | - parentRoute: typeof rootRoute |
48 | | - } |
49 | | - '/workspace/$workspaceId': { |
50 | | - id: '/workspace/$workspaceId' |
51 | | - path: '/workspace/$workspaceId' |
52 | | - fullPath: '/workspace/$workspaceId' |
53 | | - preLoaderRoute: typeof WorkspaceWorkspaceIdImport |
54 | | - parentRoute: typeof rootRoute |
55 | | - } |
56 | | - '/join/': { |
57 | | - id: '/join/' |
58 | | - path: '/join' |
59 | | - fullPath: '/join' |
60 | | - preLoaderRoute: typeof JoinIndexImport |
61 | | - parentRoute: typeof rootRoute |
62 | | - } |
| 42 | + "/": { |
| 43 | + id: "/"; |
| 44 | + path: "/"; |
| 45 | + fullPath: "/"; |
| 46 | + preLoaderRoute: typeof IndexImport; |
| 47 | + parentRoute: typeof rootRoute; |
| 48 | + }; |
| 49 | + "/workspace/$workspaceId": { |
| 50 | + id: "/workspace/$workspaceId"; |
| 51 | + path: "/workspace/$workspaceId"; |
| 52 | + fullPath: "/workspace/$workspaceId"; |
| 53 | + preLoaderRoute: typeof WorkspaceWorkspaceIdImport; |
| 54 | + parentRoute: typeof rootRoute; |
| 55 | + }; |
| 56 | + "/join/": { |
| 57 | + id: "/join/"; |
| 58 | + path: "/join"; |
| 59 | + fullPath: "/join"; |
| 60 | + preLoaderRoute: typeof JoinIndexImport; |
| 61 | + parentRoute: typeof rootRoute; |
| 62 | + }; |
63 | 63 | } |
64 | 64 | } |
65 | 65 |
|
66 | 66 | // Create and export the route tree |
67 | 67 |
|
68 | 68 | export interface FileRoutesByFullPath { |
69 | | - '/': typeof IndexRoute |
70 | | - '/workspace/$workspaceId': typeof WorkspaceWorkspaceIdRoute |
71 | | - '/join': typeof JoinIndexRoute |
| 69 | + "/": typeof IndexRoute; |
| 70 | + "/workspace/$workspaceId": typeof WorkspaceWorkspaceIdRoute; |
| 71 | + "/join": typeof JoinIndexRoute; |
72 | 72 | } |
73 | 73 |
|
74 | 74 | export interface FileRoutesByTo { |
75 | | - '/': typeof IndexRoute |
76 | | - '/workspace/$workspaceId': typeof WorkspaceWorkspaceIdRoute |
77 | | - '/join': typeof JoinIndexRoute |
| 75 | + "/": typeof IndexRoute; |
| 76 | + "/workspace/$workspaceId": typeof WorkspaceWorkspaceIdRoute; |
| 77 | + "/join": typeof JoinIndexRoute; |
78 | 78 | } |
79 | 79 |
|
80 | 80 | export interface FileRoutesById { |
81 | | - __root__: typeof rootRoute |
82 | | - '/': typeof IndexRoute |
83 | | - '/workspace/$workspaceId': typeof WorkspaceWorkspaceIdRoute |
84 | | - '/join/': typeof JoinIndexRoute |
| 81 | + __root__: typeof rootRoute; |
| 82 | + "/": typeof IndexRoute; |
| 83 | + "/workspace/$workspaceId": typeof WorkspaceWorkspaceIdRoute; |
| 84 | + "/join/": typeof JoinIndexRoute; |
85 | 85 | } |
86 | 86 |
|
87 | 87 | export interface FileRouteTypes { |
88 | | - fileRoutesByFullPath: FileRoutesByFullPath |
89 | | - fullPaths: '/' | '/workspace/$workspaceId' | '/join' |
90 | | - fileRoutesByTo: FileRoutesByTo |
91 | | - to: '/' | '/workspace/$workspaceId' | '/join' |
92 | | - id: '__root__' | '/' | '/workspace/$workspaceId' | '/join/' |
93 | | - fileRoutesById: FileRoutesById |
| 88 | + fileRoutesByFullPath: FileRoutesByFullPath; |
| 89 | + fullPaths: "/" | "/workspace/$workspaceId" | "/join"; |
| 90 | + fileRoutesByTo: FileRoutesByTo; |
| 91 | + to: "/" | "/workspace/$workspaceId" | "/join"; |
| 92 | + id: "__root__" | "/" | "/workspace/$workspaceId" | "/join/"; |
| 93 | + fileRoutesById: FileRoutesById; |
94 | 94 | } |
95 | 95 |
|
96 | 96 | export interface RootRouteChildren { |
97 | | - IndexRoute: typeof IndexRoute |
98 | | - WorkspaceWorkspaceIdRoute: typeof WorkspaceWorkspaceIdRoute |
99 | | - JoinIndexRoute: typeof JoinIndexRoute |
| 97 | + IndexRoute: typeof IndexRoute; |
| 98 | + WorkspaceWorkspaceIdRoute: typeof WorkspaceWorkspaceIdRoute; |
| 99 | + JoinIndexRoute: typeof JoinIndexRoute; |
100 | 100 | } |
101 | 101 |
|
102 | 102 | const rootRouteChildren: RootRouteChildren = { |
103 | 103 | IndexRoute: IndexRoute, |
104 | 104 | WorkspaceWorkspaceIdRoute: WorkspaceWorkspaceIdRoute, |
105 | 105 | JoinIndexRoute: JoinIndexRoute, |
106 | | -} |
| 106 | +}; |
107 | 107 |
|
108 | 108 | export const routeTree = rootRoute |
109 | 109 | ._addFileChildren(rootRouteChildren) |
110 | | - ._addFileTypes<FileRouteTypes>() |
| 110 | + ._addFileTypes<FileRouteTypes>(); |
111 | 111 |
|
112 | 112 | /* ROUTE_MANIFEST_START |
113 | 113 | { |
|
0 commit comments