feat: base form

This commit is contained in:
redglow
2026-06-20 17:18:02 +02:00
parent a89e961976
commit 3c4e6d3612
8 changed files with 112 additions and 37 deletions
+17 -17
View File
@@ -10,43 +10,43 @@
import { Route as rootRouteImport } from './routes/__root'
import { Route as IndexRouteImport } from './routes/index'
import { Route as SubrouteIndexRouteImport } from './routes/subroute/index'
import { Route as AddIndexRouteImport } from './routes/add/index'
const IndexRoute = IndexRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const SubrouteIndexRoute = SubrouteIndexRouteImport.update({
id: '/subroute/',
path: '/subroute/',
const AddIndexRoute = AddIndexRouteImport.update({
id: '/add/',
path: '/add/',
getParentRoute: () => rootRouteImport,
} as any)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/subroute/': typeof SubrouteIndexRoute
'/add/': typeof AddIndexRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/subroute': typeof SubrouteIndexRoute
'/add': typeof AddIndexRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/subroute/': typeof SubrouteIndexRoute
'/add/': typeof AddIndexRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fullPaths: '/' | '/subroute/'
fullPaths: '/' | '/add/'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/subroute'
id: '__root__' | '/' | '/subroute/'
to: '/' | '/add'
id: '__root__' | '/' | '/add/'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
SubrouteIndexRoute: typeof SubrouteIndexRoute
AddIndexRoute: typeof AddIndexRoute
}
declare module '@tanstack/react-router' {
@@ -58,11 +58,11 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof IndexRouteImport
parentRoute: typeof rootRouteImport
}
'/subroute/': {
id: '/subroute/'
path: '/subroute'
fullPath: '/subroute/'
preLoaderRoute: typeof SubrouteIndexRouteImport
'/add/': {
id: '/add/'
path: '/add'
fullPath: '/add/'
preLoaderRoute: typeof AddIndexRouteImport
parentRoute: typeof rootRouteImport
}
}
@@ -70,7 +70,7 @@ declare module '@tanstack/react-router' {
const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
SubrouteIndexRoute: SubrouteIndexRoute,
AddIndexRoute: AddIndexRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)