|
| 1 | +/* prettier-ignore-start */ |
| 2 | + |
| 3 | +/* eslint-disable */ |
| 4 | + |
| 5 | +// @ts-nocheck |
| 6 | + |
| 7 | +// noinspection JSUnusedGlobalSymbols |
| 8 | + |
| 9 | +// This file is auto-generated by TanStack Router |
| 10 | + |
| 11 | +// Import Routes |
| 12 | + |
| 13 | +import { Route as rootRoute } from './routes/__root' |
| 14 | +import { Route as JsonImport } from './routes/json' |
| 15 | +import { Route as AboutImport } from './routes/about' |
| 16 | +import { Route as IndexImport } from './routes/index' |
| 17 | +import { Route as DynamicParamImport } from './routes/dynamic/$param' |
| 18 | + |
| 19 | +// Create/Update Routes |
| 20 | + |
| 21 | +const JsonRoute = JsonImport.update({ |
| 22 | + path: '/json', |
| 23 | + getParentRoute: () => rootRoute, |
| 24 | +} as any) |
| 25 | + |
| 26 | +const AboutRoute = AboutImport.update({ |
| 27 | + path: '/about', |
| 28 | + getParentRoute: () => rootRoute, |
| 29 | +} as any) |
| 30 | + |
| 31 | +const IndexRoute = IndexImport.update({ |
| 32 | + path: '/', |
| 33 | + getParentRoute: () => rootRoute, |
| 34 | +} as any) |
| 35 | + |
| 36 | +const DynamicParamRoute = DynamicParamImport.update({ |
| 37 | + path: '/dynamic/$param', |
| 38 | + getParentRoute: () => rootRoute, |
| 39 | +} as any) |
| 40 | + |
| 41 | +// Populate the FileRoutesByPath interface |
| 42 | + |
| 43 | +declare module '@tanstack/react-router' { |
| 44 | + interface FileRoutesByPath { |
| 45 | + '/': { |
| 46 | + id: '/' |
| 47 | + path: '/' |
| 48 | + fullPath: '/' |
| 49 | + preLoaderRoute: typeof IndexImport |
| 50 | + parentRoute: typeof rootRoute |
| 51 | + } |
| 52 | + '/about': { |
| 53 | + id: '/about' |
| 54 | + path: '/about' |
| 55 | + fullPath: '/about' |
| 56 | + preLoaderRoute: typeof AboutImport |
| 57 | + parentRoute: typeof rootRoute |
| 58 | + } |
| 59 | + '/json': { |
| 60 | + id: '/json' |
| 61 | + path: '/json' |
| 62 | + fullPath: '/json' |
| 63 | + preLoaderRoute: typeof JsonImport |
| 64 | + parentRoute: typeof rootRoute |
| 65 | + } |
| 66 | + '/dynamic/$param': { |
| 67 | + id: '/dynamic/$param' |
| 68 | + path: '/dynamic/$param' |
| 69 | + fullPath: '/dynamic/$param' |
| 70 | + preLoaderRoute: typeof DynamicParamImport |
| 71 | + parentRoute: typeof rootRoute |
| 72 | + } |
| 73 | + } |
| 74 | +} |
| 75 | + |
| 76 | +// Create and export the route tree |
| 77 | + |
| 78 | +export interface FileRoutesByFullPath { |
| 79 | + '/': typeof IndexRoute |
| 80 | + '/about': typeof AboutRoute |
| 81 | + '/json': typeof JsonRoute |
| 82 | + '/dynamic/$param': typeof DynamicParamRoute |
| 83 | +} |
| 84 | + |
| 85 | +export interface FileRoutesByTo { |
| 86 | + '/': typeof IndexRoute |
| 87 | + '/about': typeof AboutRoute |
| 88 | + '/json': typeof JsonRoute |
| 89 | + '/dynamic/$param': typeof DynamicParamRoute |
| 90 | +} |
| 91 | + |
| 92 | +export interface FileRoutesById { |
| 93 | + __root__: typeof rootRoute |
| 94 | + '/': typeof IndexRoute |
| 95 | + '/about': typeof AboutRoute |
| 96 | + '/json': typeof JsonRoute |
| 97 | + '/dynamic/$param': typeof DynamicParamRoute |
| 98 | +} |
| 99 | + |
| 100 | +export interface FileRouteTypes { |
| 101 | + fileRoutesByFullPath: FileRoutesByFullPath |
| 102 | + fullPaths: '/' | '/about' | '/json' | '/dynamic/$param' |
| 103 | + fileRoutesByTo: FileRoutesByTo |
| 104 | + to: '/' | '/about' | '/json' | '/dynamic/$param' |
| 105 | + id: '__root__' | '/' | '/about' | '/json' | '/dynamic/$param' |
| 106 | + fileRoutesById: FileRoutesById |
| 107 | +} |
| 108 | + |
| 109 | +export interface RootRouteChildren { |
| 110 | + IndexRoute: typeof IndexRoute |
| 111 | + AboutRoute: typeof AboutRoute |
| 112 | + JsonRoute: typeof JsonRoute |
| 113 | + DynamicParamRoute: typeof DynamicParamRoute |
| 114 | +} |
| 115 | + |
| 116 | +const rootRouteChildren: RootRouteChildren = { |
| 117 | + IndexRoute: IndexRoute, |
| 118 | + AboutRoute: AboutRoute, |
| 119 | + JsonRoute: JsonRoute, |
| 120 | + DynamicParamRoute: DynamicParamRoute, |
| 121 | +} |
| 122 | + |
| 123 | +export const routeTree = rootRoute |
| 124 | + ._addFileChildren(rootRouteChildren) |
| 125 | + ._addFileTypes<FileRouteTypes>() |
| 126 | + |
| 127 | +/* prettier-ignore-end */ |
| 128 | + |
| 129 | +/* ROUTE_MANIFEST_START |
| 130 | +{ |
| 131 | + "routes": { |
| 132 | + "__root__": { |
| 133 | + "filePath": "__root.tsx", |
| 134 | + "children": [ |
| 135 | + "/", |
| 136 | + "/about", |
| 137 | + "/json", |
| 138 | + "/dynamic/$param" |
| 139 | + ] |
| 140 | + }, |
| 141 | + "/": { |
| 142 | + "filePath": "index.tsx" |
| 143 | + }, |
| 144 | + "/about": { |
| 145 | + "filePath": "about.tsx" |
| 146 | + }, |
| 147 | + "/json": { |
| 148 | + "filePath": "json.tsx" |
| 149 | + }, |
| 150 | + "/dynamic/$param": { |
| 151 | + "filePath": "dynamic/$param.tsx" |
| 152 | + } |
| 153 | + } |
| 154 | +} |
| 155 | +ROUTE_MANIFEST_END */ |
0 commit comments