|
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 { createFileRoute } from "@tanstack/react-router"; |
| 11 | +import { createFileRoute } from '@tanstack/react-router' |
12 | 12 |
|
13 | 13 | // Import Routes |
14 | 14 |
|
15 | | -import { Route as rootRoute } from "./routes/__root"; |
16 | | -import { Route as SearchpageImport } from "./routes/searchpage"; |
17 | | -import { Route as RecsImport } from "./routes/recs"; |
18 | | -import { Route as EcommerceImport } from "./routes/ecommerce"; |
| 15 | +import { Route as rootRoute } from './routes/__root' |
| 16 | +import { Route as SearchpageImport } from './routes/searchpage' |
| 17 | +import { Route as RecsImport } from './routes/recs' |
| 18 | +import { Route as EcommerceImport } from './routes/ecommerce' |
19 | 19 |
|
20 | 20 | // Create Virtual Routes |
21 | 21 |
|
22 | | -const IndexLazyImport = createFileRoute("/")(); |
| 22 | +const IndexLazyImport = createFileRoute('/')() |
23 | 23 |
|
24 | 24 | // Create/Update Routes |
25 | 25 |
|
26 | 26 | const SearchpageRoute = SearchpageImport.update({ |
27 | | - id: "/searchpage", |
28 | | - path: "/searchpage", |
| 27 | + id: '/searchpage', |
| 28 | + path: '/searchpage', |
29 | 29 | getParentRoute: () => rootRoute, |
30 | | -} as any); |
| 30 | +} as any) |
31 | 31 |
|
32 | 32 | const RecsRoute = RecsImport.update({ |
33 | | - id: "/recs", |
34 | | - path: "/recs", |
| 33 | + id: '/recs', |
| 34 | + path: '/recs', |
35 | 35 | getParentRoute: () => rootRoute, |
36 | | -} as any); |
| 36 | +} as any) |
37 | 37 |
|
38 | 38 | const EcommerceRoute = EcommerceImport.update({ |
39 | | - id: "/ecommerce", |
40 | | - path: "/ecommerce", |
| 39 | + id: '/ecommerce', |
| 40 | + path: '/ecommerce', |
41 | 41 | getParentRoute: () => rootRoute, |
42 | | -} as any); |
| 42 | +} as any) |
43 | 43 |
|
44 | 44 | const IndexLazyRoute = IndexLazyImport.update({ |
45 | | - id: "/", |
46 | | - path: "/", |
| 45 | + id: '/', |
| 46 | + path: '/', |
47 | 47 | getParentRoute: () => rootRoute, |
48 | | -} as any).lazy(() => import("./routes/index.lazy").then((d) => d.Route)); |
| 48 | +} as any).lazy(() => import('./routes/index.lazy').then((d) => d.Route)) |
49 | 49 |
|
50 | 50 | // Populate the FileRoutesByPath interface |
51 | 51 |
|
52 | | -declare module "@tanstack/react-router" { |
| 52 | +declare module '@tanstack/react-router' { |
53 | 53 | interface FileRoutesByPath { |
54 | | - "/": { |
55 | | - id: "/"; |
56 | | - path: "/"; |
57 | | - fullPath: "/"; |
58 | | - preLoaderRoute: typeof IndexLazyImport; |
59 | | - parentRoute: typeof rootRoute; |
60 | | - }; |
61 | | - "/ecommerce": { |
62 | | - id: "/ecommerce"; |
63 | | - path: "/ecommerce"; |
64 | | - fullPath: "/ecommerce"; |
65 | | - preLoaderRoute: typeof EcommerceImport; |
66 | | - parentRoute: typeof rootRoute; |
67 | | - }; |
68 | | - "/recs": { |
69 | | - id: "/recs"; |
70 | | - path: "/recs"; |
71 | | - fullPath: "/recs"; |
72 | | - preLoaderRoute: typeof RecsImport; |
73 | | - parentRoute: typeof rootRoute; |
74 | | - }; |
75 | | - "/searchpage": { |
76 | | - id: "/searchpage"; |
77 | | - path: "/searchpage"; |
78 | | - fullPath: "/searchpage"; |
79 | | - preLoaderRoute: typeof SearchpageImport; |
80 | | - parentRoute: typeof rootRoute; |
81 | | - }; |
| 54 | + '/': { |
| 55 | + id: '/' |
| 56 | + path: '/' |
| 57 | + fullPath: '/' |
| 58 | + preLoaderRoute: typeof IndexLazyImport |
| 59 | + parentRoute: typeof rootRoute |
| 60 | + } |
| 61 | + '/ecommerce': { |
| 62 | + id: '/ecommerce' |
| 63 | + path: '/ecommerce' |
| 64 | + fullPath: '/ecommerce' |
| 65 | + preLoaderRoute: typeof EcommerceImport |
| 66 | + parentRoute: typeof rootRoute |
| 67 | + } |
| 68 | + '/recs': { |
| 69 | + id: '/recs' |
| 70 | + path: '/recs' |
| 71 | + fullPath: '/recs' |
| 72 | + preLoaderRoute: typeof RecsImport |
| 73 | + parentRoute: typeof rootRoute |
| 74 | + } |
| 75 | + '/searchpage': { |
| 76 | + id: '/searchpage' |
| 77 | + path: '/searchpage' |
| 78 | + fullPath: '/searchpage' |
| 79 | + preLoaderRoute: typeof SearchpageImport |
| 80 | + parentRoute: typeof rootRoute |
| 81 | + } |
82 | 82 | } |
83 | 83 | } |
84 | 84 |
|
85 | 85 | // Create and export the route tree |
86 | 86 |
|
87 | 87 | export interface FileRoutesByFullPath { |
88 | | - "/": typeof IndexLazyRoute; |
89 | | - "/ecommerce": typeof EcommerceRoute; |
90 | | - "/recs": typeof RecsRoute; |
91 | | - "/searchpage": typeof SearchpageRoute; |
| 88 | + '/': typeof IndexLazyRoute |
| 89 | + '/ecommerce': typeof EcommerceRoute |
| 90 | + '/recs': typeof RecsRoute |
| 91 | + '/searchpage': typeof SearchpageRoute |
92 | 92 | } |
93 | 93 |
|
94 | 94 | export interface FileRoutesByTo { |
95 | | - "/": typeof IndexLazyRoute; |
96 | | - "/ecommerce": typeof EcommerceRoute; |
97 | | - "/recs": typeof RecsRoute; |
98 | | - "/searchpage": typeof SearchpageRoute; |
| 95 | + '/': typeof IndexLazyRoute |
| 96 | + '/ecommerce': typeof EcommerceRoute |
| 97 | + '/recs': typeof RecsRoute |
| 98 | + '/searchpage': typeof SearchpageRoute |
99 | 99 | } |
100 | 100 |
|
101 | 101 | export interface FileRoutesById { |
102 | | - __root__: typeof rootRoute; |
103 | | - "/": typeof IndexLazyRoute; |
104 | | - "/ecommerce": typeof EcommerceRoute; |
105 | | - "/recs": typeof RecsRoute; |
106 | | - "/searchpage": typeof SearchpageRoute; |
| 102 | + __root__: typeof rootRoute |
| 103 | + '/': typeof IndexLazyRoute |
| 104 | + '/ecommerce': typeof EcommerceRoute |
| 105 | + '/recs': typeof RecsRoute |
| 106 | + '/searchpage': typeof SearchpageRoute |
107 | 107 | } |
108 | 108 |
|
109 | 109 | export interface FileRouteTypes { |
110 | | - fileRoutesByFullPath: FileRoutesByFullPath; |
111 | | - fullPaths: "/" | "/ecommerce" | "/recs" | "/searchpage"; |
112 | | - fileRoutesByTo: FileRoutesByTo; |
113 | | - to: "/" | "/ecommerce" | "/recs" | "/searchpage"; |
114 | | - id: "__root__" | "/" | "/ecommerce" | "/recs" | "/searchpage"; |
115 | | - fileRoutesById: FileRoutesById; |
| 110 | + fileRoutesByFullPath: FileRoutesByFullPath |
| 111 | + fullPaths: '/' | '/ecommerce' | '/recs' | '/searchpage' |
| 112 | + fileRoutesByTo: FileRoutesByTo |
| 113 | + to: '/' | '/ecommerce' | '/recs' | '/searchpage' |
| 114 | + id: '__root__' | '/' | '/ecommerce' | '/recs' | '/searchpage' |
| 115 | + fileRoutesById: FileRoutesById |
116 | 116 | } |
117 | 117 |
|
118 | 118 | export interface RootRouteChildren { |
119 | | - IndexLazyRoute: typeof IndexLazyRoute; |
120 | | - EcommerceRoute: typeof EcommerceRoute; |
121 | | - RecsRoute: typeof RecsRoute; |
122 | | - SearchpageRoute: typeof SearchpageRoute; |
| 119 | + IndexLazyRoute: typeof IndexLazyRoute |
| 120 | + EcommerceRoute: typeof EcommerceRoute |
| 121 | + RecsRoute: typeof RecsRoute |
| 122 | + SearchpageRoute: typeof SearchpageRoute |
123 | 123 | } |
124 | 124 |
|
125 | 125 | const rootRouteChildren: RootRouteChildren = { |
126 | 126 | IndexLazyRoute: IndexLazyRoute, |
127 | 127 | EcommerceRoute: EcommerceRoute, |
128 | 128 | RecsRoute: RecsRoute, |
129 | 129 | SearchpageRoute: SearchpageRoute, |
130 | | -}; |
| 130 | +} |
131 | 131 |
|
132 | 132 | export const routeTree = rootRoute |
133 | 133 | ._addFileChildren(rootRouteChildren) |
134 | | - ._addFileTypes<FileRouteTypes>(); |
| 134 | + ._addFileTypes<FileRouteTypes>() |
135 | 135 |
|
136 | 136 | /* ROUTE_MANIFEST_START |
137 | 137 | { |
|
0 commit comments