diff --git a/examples/react/basic-virtual-inside-file-based/src/routeTree.gen.ts b/examples/react/basic-virtual-inside-file-based/src/routeTree.gen.ts index 13c88dd36d0..947fd037d9e 100644 --- a/examples/react/basic-virtual-inside-file-based/src/routeTree.gen.ts +++ b/examples/react/basic-virtual-inside-file-based/src/routeTree.gen.ts @@ -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', @@ -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, @@ -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, @@ -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, @@ -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 @@ -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': { @@ -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': { @@ -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 } } @@ -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) diff --git a/examples/solid/basic-virtual-inside-file-based/src/routeTree.gen.ts b/examples/solid/basic-virtual-inside-file-based/src/routeTree.gen.ts index 551e8a9b4d1..037dac78a39 100644 --- a/examples/solid/basic-virtual-inside-file-based/src/routeTree.gen.ts +++ b/examples/solid/basic-virtual-inside-file-based/src/routeTree.gen.ts @@ -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', @@ -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, @@ -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, @@ -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, @@ -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 @@ -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': { @@ -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': { @@ -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 } } @@ -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)