|
| 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 LayoutRouteImport } from './routes/layout' |
| 13 | +import { Route as IndexRouteImport } from './routes/index' |
| 14 | +import { Route as LayoutPage2RouteImport } from './routes/layout.page2' |
| 15 | + |
| 16 | +const LayoutRoute = LayoutRouteImport.update({ |
| 17 | + id: '/layout', |
| 18 | + path: '/layout', |
| 19 | + getParentRoute: () => rootRouteImport, |
| 20 | +} as any) |
| 21 | +const IndexRoute = IndexRouteImport.update({ |
| 22 | + id: '/', |
| 23 | + path: '/', |
| 24 | + getParentRoute: () => rootRouteImport, |
| 25 | +} as any) |
| 26 | +const LayoutPage2Route = LayoutPage2RouteImport.update({ |
| 27 | + id: '/page2', |
| 28 | + path: '/page2', |
| 29 | + getParentRoute: () => LayoutRoute, |
| 30 | +} as any) |
| 31 | + |
| 32 | +export interface FileRoutesByFullPath { |
| 33 | + '/': typeof IndexRoute |
| 34 | + '/layout': typeof LayoutRouteWithChildren |
| 35 | + '/layout/page2': typeof LayoutPage2Route |
| 36 | +} |
| 37 | +export interface FileRoutesByTo { |
| 38 | + '/': typeof IndexRoute |
| 39 | + '/layout': typeof LayoutRouteWithChildren |
| 40 | + '/layout/page2': typeof LayoutPage2Route |
| 41 | +} |
| 42 | +export interface FileRoutesById { |
| 43 | + __root__: typeof rootRouteImport |
| 44 | + '/': typeof IndexRoute |
| 45 | + '/layout': typeof LayoutRouteWithChildren |
| 46 | + '/layout/page2': typeof LayoutPage2Route |
| 47 | +} |
| 48 | +export interface FileRouteTypes { |
| 49 | + fileRoutesByFullPath: FileRoutesByFullPath |
| 50 | + fullPaths: '/' | '/layout' | '/layout/page2' |
| 51 | + fileRoutesByTo: FileRoutesByTo |
| 52 | + to: '/' | '/layout' | '/layout/page2' |
| 53 | + id: '__root__' | '/' | '/layout' | '/layout/page2' |
| 54 | + fileRoutesById: FileRoutesById |
| 55 | +} |
| 56 | +export interface RootRouteChildren { |
| 57 | + IndexRoute: typeof IndexRoute |
| 58 | + LayoutRoute: typeof LayoutRouteWithChildren |
| 59 | +} |
| 60 | + |
| 61 | +declare module '@tanstack/solid-router' { |
| 62 | + interface FileRoutesByPath { |
| 63 | + '/layout': { |
| 64 | + id: '/layout' |
| 65 | + path: '/layout' |
| 66 | + fullPath: '/layout' |
| 67 | + preLoaderRoute: typeof LayoutRouteImport |
| 68 | + parentRoute: typeof rootRouteImport |
| 69 | + } |
| 70 | + '/': { |
| 71 | + id: '/' |
| 72 | + path: '/' |
| 73 | + fullPath: '/' |
| 74 | + preLoaderRoute: typeof IndexRouteImport |
| 75 | + parentRoute: typeof rootRouteImport |
| 76 | + } |
| 77 | + '/layout/page2': { |
| 78 | + id: '/layout/page2' |
| 79 | + path: '/page2' |
| 80 | + fullPath: '/layout/page2' |
| 81 | + preLoaderRoute: typeof LayoutPage2RouteImport |
| 82 | + parentRoute: typeof LayoutRoute |
| 83 | + } |
| 84 | + } |
| 85 | +} |
| 86 | + |
| 87 | +interface LayoutRouteChildren { |
| 88 | + LayoutPage2Route: typeof LayoutPage2Route |
| 89 | +} |
| 90 | + |
| 91 | +const LayoutRouteChildren: LayoutRouteChildren = { |
| 92 | + LayoutPage2Route: LayoutPage2Route, |
| 93 | +} |
| 94 | + |
| 95 | +const LayoutRouteWithChildren = |
| 96 | + LayoutRoute._addFileChildren(LayoutRouteChildren) |
| 97 | + |
| 98 | +const rootRouteChildren: RootRouteChildren = { |
| 99 | + IndexRoute: IndexRoute, |
| 100 | + LayoutRoute: LayoutRouteWithChildren, |
| 101 | +} |
| 102 | +export const routeTree = rootRouteImport |
| 103 | + ._addFileChildren(rootRouteChildren) |
| 104 | + ._addFileTypes<FileRouteTypes>() |
| 105 | + |
| 106 | +import type { getRouter } from './router.tsx' |
| 107 | +import type { createStart } from '@tanstack/solid-start' |
| 108 | +declare module '@tanstack/solid-start' { |
| 109 | + interface Register { |
| 110 | + ssr: true |
| 111 | + router: Awaited<ReturnType<typeof getRouter>> |
| 112 | + } |
| 113 | +} |
0 commit comments