|
| 1 | +/* eslint-disable */ |
| 2 | + |
| 3 | +// @ts-nocheck |
| 4 | + |
| 5 | +// noinspection JSUnusedGlobalSymbols |
| 6 | + |
| 7 | +// This file was automatically generated by TanStack Router. |
| 8 | +// You should NOT make any changes in this file as it will be overwritten. |
| 9 | +// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. |
| 10 | + |
| 11 | +import { Route as rootRouteImport } from './routes/__root' |
| 12 | +import { Route as ProtectedRouteImport } from './routes/protected' |
| 13 | +import { Route as LoginRouteImport } from './routes/login' |
| 14 | +import { Route as IndexRouteImport } from './routes/index' |
| 15 | +import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$' |
| 16 | + |
| 17 | +const ProtectedRoute = ProtectedRouteImport.update({ |
| 18 | + id: '/protected', |
| 19 | + path: '/protected', |
| 20 | + getParentRoute: () => rootRouteImport, |
| 21 | +} as any) |
| 22 | +const LoginRoute = LoginRouteImport.update({ |
| 23 | + id: '/login', |
| 24 | + path: '/login', |
| 25 | + getParentRoute: () => rootRouteImport, |
| 26 | +} as any) |
| 27 | +const IndexRoute = IndexRouteImport.update({ |
| 28 | + id: '/', |
| 29 | + path: '/', |
| 30 | + getParentRoute: () => rootRouteImport, |
| 31 | +} as any) |
| 32 | +const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({ |
| 33 | + id: '/api/auth/$', |
| 34 | + path: '/api/auth/$', |
| 35 | + getParentRoute: () => rootRouteImport, |
| 36 | +} as any) |
| 37 | + |
| 38 | +export interface FileRoutesByFullPath { |
| 39 | + '/': typeof IndexRoute |
| 40 | + '/login': typeof LoginRoute |
| 41 | + '/protected': typeof ProtectedRoute |
| 42 | + '/api/auth/$': typeof ApiAuthSplatRoute |
| 43 | +} |
| 44 | +export interface FileRoutesByTo { |
| 45 | + '/': typeof IndexRoute |
| 46 | + '/login': typeof LoginRoute |
| 47 | + '/protected': typeof ProtectedRoute |
| 48 | + '/api/auth/$': typeof ApiAuthSplatRoute |
| 49 | +} |
| 50 | +export interface FileRoutesById { |
| 51 | + __root__: typeof rootRouteImport |
| 52 | + '/': typeof IndexRoute |
| 53 | + '/login': typeof LoginRoute |
| 54 | + '/protected': typeof ProtectedRoute |
| 55 | + '/api/auth/$': typeof ApiAuthSplatRoute |
| 56 | +} |
| 57 | +export interface FileRouteTypes { |
| 58 | + fileRoutesByFullPath: FileRoutesByFullPath |
| 59 | + fullPaths: '/' | '/login' | '/protected' | '/api/auth/$' |
| 60 | + fileRoutesByTo: FileRoutesByTo |
| 61 | + to: '/' | '/login' | '/protected' | '/api/auth/$' |
| 62 | + id: '__root__' | '/' | '/login' | '/protected' | '/api/auth/$' |
| 63 | + fileRoutesById: FileRoutesById |
| 64 | +} |
| 65 | +export interface RootRouteChildren { |
| 66 | + IndexRoute: typeof IndexRoute |
| 67 | + LoginRoute: typeof LoginRoute |
| 68 | + ProtectedRoute: typeof ProtectedRoute |
| 69 | + ApiAuthSplatRoute: typeof ApiAuthSplatRoute |
| 70 | +} |
| 71 | + |
| 72 | +declare module '@tanstack/react-router' { |
| 73 | + interface FileRoutesByPath { |
| 74 | + '/protected': { |
| 75 | + id: '/protected' |
| 76 | + path: '/protected' |
| 77 | + fullPath: '/protected' |
| 78 | + preLoaderRoute: typeof ProtectedRouteImport |
| 79 | + parentRoute: typeof rootRouteImport |
| 80 | + } |
| 81 | + '/login': { |
| 82 | + id: '/login' |
| 83 | + path: '/login' |
| 84 | + fullPath: '/login' |
| 85 | + preLoaderRoute: typeof LoginRouteImport |
| 86 | + parentRoute: typeof rootRouteImport |
| 87 | + } |
| 88 | + '/': { |
| 89 | + id: '/' |
| 90 | + path: '/' |
| 91 | + fullPath: '/' |
| 92 | + preLoaderRoute: typeof IndexRouteImport |
| 93 | + parentRoute: typeof rootRouteImport |
| 94 | + } |
| 95 | + '/api/auth/$': { |
| 96 | + id: '/api/auth/$' |
| 97 | + path: '/api/auth/$' |
| 98 | + fullPath: '/api/auth/$' |
| 99 | + preLoaderRoute: typeof ApiAuthSplatRouteImport |
| 100 | + parentRoute: typeof rootRouteImport |
| 101 | + } |
| 102 | + } |
| 103 | +} |
| 104 | + |
| 105 | +const rootRouteChildren: RootRouteChildren = { |
| 106 | + IndexRoute: IndexRoute, |
| 107 | + LoginRoute: LoginRoute, |
| 108 | + ProtectedRoute: ProtectedRoute, |
| 109 | + ApiAuthSplatRoute: ApiAuthSplatRoute, |
| 110 | +} |
| 111 | +export const routeTree = rootRouteImport |
| 112 | + ._addFileChildren(rootRouteChildren) |
| 113 | + ._addFileTypes<FileRouteTypes>() |
| 114 | + |
| 115 | +import type { getRouter } from './router.tsx' |
| 116 | +import type { createStart } from '@tanstack/react-start' |
| 117 | +declare module '@tanstack/react-start' { |
| 118 | + interface Register { |
| 119 | + ssr: true |
| 120 | + router: Awaited<ReturnType<typeof getRouter>> |
| 121 | + } |
| 122 | +} |
0 commit comments