This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
import { Route as rootRouteImport } from './routes/__root'
|
||||
import { Route as BlankRouteImport } from './routes/blank'
|
||||
import { Route as AsyncRenderingRouteImport } from './routes/async-rendering'
|
||||
import { Route as IndexRouteImport } from './routes/index'
|
||||
|
||||
const BlankRoute = BlankRouteImport.update({
|
||||
@@ -17,6 +18,11 @@ const BlankRoute = BlankRouteImport.update({
|
||||
path: '/blank',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const AsyncRenderingRoute = AsyncRenderingRouteImport.update({
|
||||
id: '/async-rendering',
|
||||
path: '/async-rendering',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const IndexRoute = IndexRouteImport.update({
|
||||
id: '/',
|
||||
path: '/',
|
||||
@@ -25,27 +31,31 @@ const IndexRoute = IndexRouteImport.update({
|
||||
|
||||
export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'/async-rendering': typeof AsyncRenderingRoute
|
||||
'/blank': typeof BlankRoute
|
||||
}
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'/async-rendering': typeof AsyncRenderingRoute
|
||||
'/blank': typeof BlankRoute
|
||||
}
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRouteImport
|
||||
'/': typeof IndexRoute
|
||||
'/async-rendering': typeof AsyncRenderingRoute
|
||||
'/blank': typeof BlankRoute
|
||||
}
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: '/' | '/blank'
|
||||
fullPaths: '/' | '/async-rendering' | '/blank'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/' | '/blank'
|
||||
id: '__root__' | '/' | '/blank'
|
||||
to: '/' | '/async-rendering' | '/blank'
|
||||
id: '__root__' | '/' | '/async-rendering' | '/blank'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
AsyncRenderingRoute: typeof AsyncRenderingRoute
|
||||
BlankRoute: typeof BlankRoute
|
||||
}
|
||||
|
||||
@@ -58,6 +68,13 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof BlankRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/async-rendering': {
|
||||
id: '/async-rendering'
|
||||
path: '/async-rendering'
|
||||
fullPath: '/async-rendering'
|
||||
preLoaderRoute: typeof AsyncRenderingRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/': {
|
||||
id: '/'
|
||||
path: '/'
|
||||
@@ -70,6 +87,7 @@ declare module '@tanstack/react-router' {
|
||||
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
AsyncRenderingRoute: AsyncRenderingRoute,
|
||||
BlankRoute: BlankRoute,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
|
||||
Reference in New Issue
Block a user