Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions examples/react/basic-virtual-inside-file-based/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import { Route as rootRouteImport } from './routes/__root'
import { Route as PostsRouteImport } from './routes/posts'
import { Route as LayoutRouteImport } from './routes/_layout'
import { Route as IndexRouteImport } from './routes/index'
import { Route as postsDetailsRouteImport } from './routes/posts/details'
import { Route as PostsDetailsRouteImport } from './routes/posts/details'
import { Route as LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
import { Route as postsHomeRouteImport } from './routes/posts/home'
import { Route as postsLetsGoIndexRouteImport } from './routes/posts/lets-go/index'
import { Route as PostsHomeRouteImport } from './routes/posts/home'
import { Route as PostsLetsGoIndexRouteImport } from './routes/posts/lets-go/index'
import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
import { Route as postsLetsGoDeeperHomeRouteImport } from './routes/posts/lets-go/deeper/home'
import { Route as PostsLetsGoDeeperHomeRouteImport } from './routes/posts/lets-go/deeper/home'

const PostsRoute = PostsRouteImport.update({
id: '/posts',
Expand All @@ -34,7 +34,7 @@ const IndexRoute = IndexRouteImport.update({
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const postsDetailsRoute = postsDetailsRouteImport.update({
const PostsDetailsRoute = PostsDetailsRouteImport.update({
id: '/$postId',
path: '/$postId',
getParentRoute: () => PostsRoute,
Expand All @@ -43,12 +43,12 @@ const LayoutLayout2Route = LayoutLayout2RouteImport.update({
id: '/_layout-2',
getParentRoute: () => LayoutRoute,
} as any)
const postsHomeRoute = postsHomeRouteImport.update({
const PostsHomeRoute = PostsHomeRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => PostsRoute,
} as any)
const postsLetsGoIndexRoute = postsLetsGoIndexRouteImport.update({
const PostsLetsGoIndexRoute = PostsLetsGoIndexRouteImport.update({
id: '/inception/',
path: '/inception/',
getParentRoute: () => PostsRoute,
Expand All @@ -63,7 +63,7 @@ const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
path: '/layout-a',
getParentRoute: () => LayoutLayout2Route,
} as any)
const postsLetsGoDeeperHomeRoute = postsLetsGoDeeperHomeRouteImport.update({
const PostsLetsGoDeeperHomeRoute = PostsLetsGoDeeperHomeRouteImport.update({
id: '/inception/deeper/',
path: '/inception/deeper/',
getParentRoute: () => PostsRoute,
Expand All @@ -72,34 +72,34 @@ const postsLetsGoDeeperHomeRoute = postsLetsGoDeeperHomeRouteImport.update({
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/posts': typeof PostsRouteWithChildren
'/posts/': typeof postsHomeRoute
'/posts/$postId': typeof postsDetailsRoute
'/posts/': typeof PostsHomeRoute
'/posts/$postId': typeof PostsDetailsRoute
'/layout-a': typeof LayoutLayout2LayoutARoute
'/layout-b': typeof LayoutLayout2LayoutBRoute
'/posts/inception/': typeof postsLetsGoIndexRoute
'/posts/inception/deeper/': typeof postsLetsGoDeeperHomeRoute
'/posts/inception/': typeof PostsLetsGoIndexRoute
'/posts/inception/deeper/': typeof PostsLetsGoDeeperHomeRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/posts': typeof postsHomeRoute
'/posts/$postId': typeof postsDetailsRoute
'/posts': typeof PostsHomeRoute
'/posts/$postId': typeof PostsDetailsRoute
'/layout-a': typeof LayoutLayout2LayoutARoute
'/layout-b': typeof LayoutLayout2LayoutBRoute
'/posts/inception': typeof postsLetsGoIndexRoute
'/posts/inception/deeper': typeof postsLetsGoDeeperHomeRoute
'/posts/inception': typeof PostsLetsGoIndexRoute
'/posts/inception/deeper': typeof PostsLetsGoDeeperHomeRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/_layout': typeof LayoutRouteWithChildren
'/posts': typeof PostsRouteWithChildren
'/posts/': typeof postsHomeRoute
'/posts/': typeof PostsHomeRoute
'/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren
'/posts/$postId': typeof postsDetailsRoute
'/posts/$postId': typeof PostsDetailsRoute
'/_layout/_layout-2/layout-a': typeof LayoutLayout2LayoutARoute
'/_layout/_layout-2/layout-b': typeof LayoutLayout2LayoutBRoute
'/posts/inception/': typeof postsLetsGoIndexRoute
'/posts/inception/deeper/': typeof postsLetsGoDeeperHomeRoute
'/posts/inception/': typeof PostsLetsGoIndexRoute
'/posts/inception/deeper/': typeof PostsLetsGoDeeperHomeRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
Expand Down Expand Up @@ -168,7 +168,7 @@ declare module '@tanstack/react-router' {
id: '/posts/$postId'
path: '/$postId'
fullPath: '/posts/$postId'
preLoaderRoute: typeof postsDetailsRouteImport
preLoaderRoute: typeof PostsDetailsRouteImport
parentRoute: typeof PostsRoute
}
'/_layout/_layout-2': {
Expand All @@ -182,14 +182,14 @@ declare module '@tanstack/react-router' {
id: '/posts/'
path: '/'
fullPath: '/posts/'
preLoaderRoute: typeof postsHomeRouteImport
preLoaderRoute: typeof PostsHomeRouteImport
parentRoute: typeof PostsRoute
}
'/posts/inception/': {
id: '/posts/inception/'
path: '/inception'
fullPath: '/posts/inception/'
preLoaderRoute: typeof postsLetsGoIndexRouteImport
preLoaderRoute: typeof PostsLetsGoIndexRouteImport
parentRoute: typeof PostsRoute
}
'/_layout/_layout-2/layout-b': {
Expand All @@ -210,7 +210,7 @@ declare module '@tanstack/react-router' {
id: '/posts/inception/deeper/'
path: '/inception/deeper'
fullPath: '/posts/inception/deeper/'
preLoaderRoute: typeof postsLetsGoDeeperHomeRouteImport
preLoaderRoute: typeof PostsLetsGoDeeperHomeRouteImport
parentRoute: typeof PostsRoute
}
}
Expand Down Expand Up @@ -242,17 +242,17 @@ const LayoutRouteWithChildren =
LayoutRoute._addFileChildren(LayoutRouteChildren)

interface PostsRouteChildren {
postsHomeRoute: typeof postsHomeRoute
postsDetailsRoute: typeof postsDetailsRoute
postsLetsGoIndexRoute: typeof postsLetsGoIndexRoute
postsLetsGoDeeperHomeRoute: typeof postsLetsGoDeeperHomeRoute
PostsHomeRoute: typeof PostsHomeRoute
PostsDetailsRoute: typeof PostsDetailsRoute
PostsLetsGoIndexRoute: typeof PostsLetsGoIndexRoute
PostsLetsGoDeeperHomeRoute: typeof PostsLetsGoDeeperHomeRoute
}

const PostsRouteChildren: PostsRouteChildren = {
postsHomeRoute: postsHomeRoute,
postsDetailsRoute: postsDetailsRoute,
postsLetsGoIndexRoute: postsLetsGoIndexRoute,
postsLetsGoDeeperHomeRoute: postsLetsGoDeeperHomeRoute,
PostsHomeRoute: PostsHomeRoute,
PostsDetailsRoute: PostsDetailsRoute,
PostsLetsGoIndexRoute: PostsLetsGoIndexRoute,
PostsLetsGoDeeperHomeRoute: PostsLetsGoDeeperHomeRoute,
}

const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
Expand Down
64 changes: 32 additions & 32 deletions examples/solid/basic-virtual-inside-file-based/src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import { Route as rootRouteImport } from './routes/__root'
import { Route as PostsRouteImport } from './routes/posts'
import { Route as LayoutRouteImport } from './routes/_layout'
import { Route as IndexRouteImport } from './routes/index'
import { Route as postsDetailsRouteImport } from './routes/posts/details'
import { Route as PostsDetailsRouteImport } from './routes/posts/details'
import { Route as LayoutLayout2RouteImport } from './routes/_layout/_layout-2'
import { Route as postsHomeRouteImport } from './routes/posts/home'
import { Route as postsLetsGoIndexRouteImport } from './routes/posts/lets-go/index'
import { Route as PostsHomeRouteImport } from './routes/posts/home'
import { Route as PostsLetsGoIndexRouteImport } from './routes/posts/lets-go/index'
import { Route as LayoutLayout2LayoutBRouteImport } from './routes/_layout/_layout-2/layout-b'
import { Route as LayoutLayout2LayoutARouteImport } from './routes/_layout/_layout-2/layout-a'
import { Route as postsLetsGoDeeperHomeRouteImport } from './routes/posts/lets-go/deeper/home'
import { Route as PostsLetsGoDeeperHomeRouteImport } from './routes/posts/lets-go/deeper/home'

const PostsRoute = PostsRouteImport.update({
id: '/posts',
Expand All @@ -34,7 +34,7 @@ const IndexRoute = IndexRouteImport.update({
path: '/',
getParentRoute: () => rootRouteImport,
} as any)
const postsDetailsRoute = postsDetailsRouteImport.update({
const PostsDetailsRoute = PostsDetailsRouteImport.update({
id: '/$postId',
path: '/$postId',
getParentRoute: () => PostsRoute,
Expand All @@ -43,12 +43,12 @@ const LayoutLayout2Route = LayoutLayout2RouteImport.update({
id: '/_layout-2',
getParentRoute: () => LayoutRoute,
} as any)
const postsHomeRoute = postsHomeRouteImport.update({
const PostsHomeRoute = PostsHomeRouteImport.update({
id: '/',
path: '/',
getParentRoute: () => PostsRoute,
} as any)
const postsLetsGoIndexRoute = postsLetsGoIndexRouteImport.update({
const PostsLetsGoIndexRoute = PostsLetsGoIndexRouteImport.update({
id: '/inception/',
path: '/inception/',
getParentRoute: () => PostsRoute,
Expand All @@ -63,7 +63,7 @@ const LayoutLayout2LayoutARoute = LayoutLayout2LayoutARouteImport.update({
path: '/layout-a',
getParentRoute: () => LayoutLayout2Route,
} as any)
const postsLetsGoDeeperHomeRoute = postsLetsGoDeeperHomeRouteImport.update({
const PostsLetsGoDeeperHomeRoute = PostsLetsGoDeeperHomeRouteImport.update({
id: '/inception/deeper/',
path: '/inception/deeper/',
getParentRoute: () => PostsRoute,
Expand All @@ -72,34 +72,34 @@ const postsLetsGoDeeperHomeRoute = postsLetsGoDeeperHomeRouteImport.update({
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/posts': typeof PostsRouteWithChildren
'/posts/': typeof postsHomeRoute
'/posts/$postId': typeof postsDetailsRoute
'/posts/': typeof PostsHomeRoute
'/posts/$postId': typeof PostsDetailsRoute
'/layout-a': typeof LayoutLayout2LayoutARoute
'/layout-b': typeof LayoutLayout2LayoutBRoute
'/posts/inception/': typeof postsLetsGoIndexRoute
'/posts/inception/deeper/': typeof postsLetsGoDeeperHomeRoute
'/posts/inception/': typeof PostsLetsGoIndexRoute
'/posts/inception/deeper/': typeof PostsLetsGoDeeperHomeRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
'/posts': typeof postsHomeRoute
'/posts/$postId': typeof postsDetailsRoute
'/posts': typeof PostsHomeRoute
'/posts/$postId': typeof PostsDetailsRoute
'/layout-a': typeof LayoutLayout2LayoutARoute
'/layout-b': typeof LayoutLayout2LayoutBRoute
'/posts/inception': typeof postsLetsGoIndexRoute
'/posts/inception/deeper': typeof postsLetsGoDeeperHomeRoute
'/posts/inception': typeof PostsLetsGoIndexRoute
'/posts/inception/deeper': typeof PostsLetsGoDeeperHomeRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
'/': typeof IndexRoute
'/_layout': typeof LayoutRouteWithChildren
'/posts': typeof PostsRouteWithChildren
'/posts/': typeof postsHomeRoute
'/posts/': typeof PostsHomeRoute
'/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren
'/posts/$postId': typeof postsDetailsRoute
'/posts/$postId': typeof PostsDetailsRoute
'/_layout/_layout-2/layout-a': typeof LayoutLayout2LayoutARoute
'/_layout/_layout-2/layout-b': typeof LayoutLayout2LayoutBRoute
'/posts/inception/': typeof postsLetsGoIndexRoute
'/posts/inception/deeper/': typeof postsLetsGoDeeperHomeRoute
'/posts/inception/': typeof PostsLetsGoIndexRoute
'/posts/inception/deeper/': typeof PostsLetsGoDeeperHomeRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
Expand Down Expand Up @@ -168,7 +168,7 @@ declare module '@tanstack/solid-router' {
id: '/posts/$postId'
path: '/$postId'
fullPath: '/posts/$postId'
preLoaderRoute: typeof postsDetailsRouteImport
preLoaderRoute: typeof PostsDetailsRouteImport
parentRoute: typeof PostsRoute
}
'/_layout/_layout-2': {
Expand All @@ -182,14 +182,14 @@ declare module '@tanstack/solid-router' {
id: '/posts/'
path: '/'
fullPath: '/posts/'
preLoaderRoute: typeof postsHomeRouteImport
preLoaderRoute: typeof PostsHomeRouteImport
parentRoute: typeof PostsRoute
}
'/posts/inception/': {
id: '/posts/inception/'
path: '/inception'
fullPath: '/posts/inception/'
preLoaderRoute: typeof postsLetsGoIndexRouteImport
preLoaderRoute: typeof PostsLetsGoIndexRouteImport
parentRoute: typeof PostsRoute
}
'/_layout/_layout-2/layout-b': {
Expand All @@ -210,7 +210,7 @@ declare module '@tanstack/solid-router' {
id: '/posts/inception/deeper/'
path: '/inception/deeper'
fullPath: '/posts/inception/deeper/'
preLoaderRoute: typeof postsLetsGoDeeperHomeRouteImport
preLoaderRoute: typeof PostsLetsGoDeeperHomeRouteImport
parentRoute: typeof PostsRoute
}
}
Expand Down Expand Up @@ -242,17 +242,17 @@ const LayoutRouteWithChildren =
LayoutRoute._addFileChildren(LayoutRouteChildren)

interface PostsRouteChildren {
postsHomeRoute: typeof postsHomeRoute
postsDetailsRoute: typeof postsDetailsRoute
postsLetsGoIndexRoute: typeof postsLetsGoIndexRoute
postsLetsGoDeeperHomeRoute: typeof postsLetsGoDeeperHomeRoute
PostsHomeRoute: typeof PostsHomeRoute
PostsDetailsRoute: typeof PostsDetailsRoute
PostsLetsGoIndexRoute: typeof PostsLetsGoIndexRoute
PostsLetsGoDeeperHomeRoute: typeof PostsLetsGoDeeperHomeRoute
}

const PostsRouteChildren: PostsRouteChildren = {
postsHomeRoute: postsHomeRoute,
postsDetailsRoute: postsDetailsRoute,
postsLetsGoIndexRoute: postsLetsGoIndexRoute,
postsLetsGoDeeperHomeRoute: postsLetsGoDeeperHomeRoute,
PostsHomeRoute: PostsHomeRoute,
PostsDetailsRoute: PostsDetailsRoute,
PostsLetsGoIndexRoute: PostsLetsGoIndexRoute,
PostsLetsGoDeeperHomeRoute: PostsLetsGoDeeperHomeRoute,
}

const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
Expand Down
Loading