@@ -9,50 +9,118 @@
|
||||
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
||||
|
||||
import { Route as rootRouteImport } from './routes/__root'
|
||||
import { Route as IndexRouteImport } from './routes/index'
|
||||
import { Route as GarrysmodRouteImport } from './routes/garrysmod'
|
||||
import { Route as MainRouteImport } from './routes/_main'
|
||||
import { Route as GarrysmodIndexRouteImport } from './routes/garrysmod.index'
|
||||
import { Route as MainIndexRouteImport } from './routes/_main.index'
|
||||
|
||||
const IndexRoute = IndexRouteImport.update({
|
||||
const GarrysmodRoute = GarrysmodRouteImport.update({
|
||||
id: '/garrysmod',
|
||||
path: '/garrysmod',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const MainRoute = MainRouteImport.update({
|
||||
id: '/_main',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const GarrysmodIndexRoute = GarrysmodIndexRouteImport.update({
|
||||
id: '/',
|
||||
path: '/',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
getParentRoute: () => GarrysmodRoute,
|
||||
} as any)
|
||||
const MainIndexRoute = MainIndexRouteImport.update({
|
||||
id: '/',
|
||||
path: '/',
|
||||
getParentRoute: () => MainRoute,
|
||||
} as any)
|
||||
|
||||
export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'/garrysmod': typeof GarrysmodRouteWithChildren
|
||||
'/': typeof MainIndexRoute
|
||||
'/garrysmod/': typeof GarrysmodIndexRoute
|
||||
}
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'/': typeof MainIndexRoute
|
||||
'/garrysmod': typeof GarrysmodIndexRoute
|
||||
}
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRouteImport
|
||||
'/': typeof IndexRoute
|
||||
'/_main': typeof MainRouteWithChildren
|
||||
'/garrysmod': typeof GarrysmodRouteWithChildren
|
||||
'/_main/': typeof MainIndexRoute
|
||||
'/garrysmod/': typeof GarrysmodIndexRoute
|
||||
}
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: '/'
|
||||
fullPaths: '/garrysmod' | '/' | '/garrysmod/'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/'
|
||||
id: '__root__' | '/'
|
||||
to: '/' | '/garrysmod'
|
||||
id: '__root__' | '/_main' | '/garrysmod' | '/_main/' | '/garrysmod/'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
MainRoute: typeof MainRouteWithChildren
|
||||
GarrysmodRoute: typeof GarrysmodRouteWithChildren
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
interface FileRoutesByPath {
|
||||
'/': {
|
||||
id: '/'
|
||||
'/garrysmod': {
|
||||
id: '/garrysmod'
|
||||
path: '/garrysmod'
|
||||
fullPath: '/garrysmod'
|
||||
preLoaderRoute: typeof GarrysmodRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/_main': {
|
||||
id: '/_main'
|
||||
path: ''
|
||||
fullPath: ''
|
||||
preLoaderRoute: typeof MainRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/garrysmod/': {
|
||||
id: '/garrysmod/'
|
||||
path: '/'
|
||||
fullPath: '/garrysmod/'
|
||||
preLoaderRoute: typeof GarrysmodIndexRouteImport
|
||||
parentRoute: typeof GarrysmodRoute
|
||||
}
|
||||
'/_main/': {
|
||||
id: '/_main/'
|
||||
path: '/'
|
||||
fullPath: '/'
|
||||
preLoaderRoute: typeof IndexRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
preLoaderRoute: typeof MainIndexRouteImport
|
||||
parentRoute: typeof MainRoute
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
interface MainRouteChildren {
|
||||
MainIndexRoute: typeof MainIndexRoute
|
||||
}
|
||||
|
||||
const MainRouteChildren: MainRouteChildren = {
|
||||
MainIndexRoute: MainIndexRoute,
|
||||
}
|
||||
|
||||
const MainRouteWithChildren = MainRoute._addFileChildren(MainRouteChildren)
|
||||
|
||||
interface GarrysmodRouteChildren {
|
||||
GarrysmodIndexRoute: typeof GarrysmodIndexRoute
|
||||
}
|
||||
|
||||
const GarrysmodRouteChildren: GarrysmodRouteChildren = {
|
||||
GarrysmodIndexRoute: GarrysmodIndexRoute,
|
||||
}
|
||||
|
||||
const GarrysmodRouteWithChildren = GarrysmodRoute._addFileChildren(
|
||||
GarrysmodRouteChildren,
|
||||
)
|
||||
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
MainRoute: MainRouteWithChildren,
|
||||
GarrysmodRoute: GarrysmodRouteWithChildren,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
|
||||
Reference in New Issue
Block a user