Files
docs/examples/tanstack-start-i18n/src/routeTree.gen.ts

105 lines
3.1 KiB
TypeScript

/* eslint-disable */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// This file was automatically generated by TanStack Router.
// You should NOT make any changes in this file as it will be overwritten.
// 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 LangIndexRouteImport } from './routes/$lang/index'
import { Route as V1SearchRouteImport } from './routes/v1/search'
import { Route as LangDocsSplatRouteImport } from './routes/$lang/docs/$'
const LangIndexRoute = LangIndexRouteImport.update({
id: '/$lang/',
path: '/$lang/',
getParentRoute: () => rootRouteImport,
} as any)
const V1SearchRoute = V1SearchRouteImport.update({
id: '/v1/search',
path: '/v1/search',
getParentRoute: () => rootRouteImport,
} as any)
const LangDocsSplatRoute = LangDocsSplatRouteImport.update({
id: '/$lang/docs/$',
path: '/$lang/docs/$',
getParentRoute: () => rootRouteImport,
} as any)
export interface FileRoutesByFullPath {
'/v1/search': typeof V1SearchRoute
'/$lang/': typeof LangIndexRoute
'/$lang/docs/$': typeof LangDocsSplatRoute
}
export interface FileRoutesByTo {
'/v1/search': typeof V1SearchRoute
'/$lang': typeof LangIndexRoute
'/$lang/docs/$': typeof LangDocsSplatRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/v1/search': typeof V1SearchRoute
'/$lang/': typeof LangIndexRoute
'/$lang/docs/$': typeof LangDocsSplatRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/v1/search' | '/$lang/' | '/$lang/docs/$'
fileRoutesByTo: FileRoutesByTo
to: '/v1/search' | '/$lang' | '/$lang/docs/$'
id: '__root__' | '/v1/search' | '/$lang/' | '/$lang/docs/$'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
V1SearchRoute: typeof V1SearchRoute
LangIndexRoute: typeof LangIndexRoute
LangDocsSplatRoute: typeof LangDocsSplatRoute
}
declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/$lang/': {
id: '/$lang/'
path: '/$lang'
fullPath: '/$lang/'
preLoaderRoute: typeof LangIndexRouteImport
parentRoute: typeof rootRouteImport
}
'/v1/search': {
id: '/v1/search'
path: '/v1/search'
fullPath: '/v1/search'
preLoaderRoute: typeof V1SearchRouteImport
parentRoute: typeof rootRouteImport
}
'/$lang/docs/$': {
id: '/$lang/docs/$'
path: '/$lang/docs/$'
fullPath: '/$lang/docs/$'
preLoaderRoute: typeof LangDocsSplatRouteImport
parentRoute: typeof rootRouteImport
}
}
}
const rootRouteChildren: RootRouteChildren = {
V1SearchRoute: V1SearchRoute,
LangIndexRoute: LangIndexRoute,
LangDocsSplatRoute: LangDocsSplatRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()
import type { getRouter } from './router.tsx'
import type { createStart } from '@tanstack/react-start'
declare module '@tanstack/react-start' {
interface Register {
ssr: true
router: Awaited<ReturnType<typeof getRouter>>
}
}