Skip to content

Commit 3d27e4d

Browse files
committed
Merging main
2 parents 427be1e + 97752da commit 3d27e4d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-tsrouter-app",
3-
"version": "0.10.0-alpha.2",
3+
"version": "0.11.0-alpha.2",
44
"description": "Tanstack Application Builder",
55
"bin": "./dist/index.js",
66
"type": "module",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { createTRPCContext } from "@trpc/tanstack-react-query";
2-
import type { TRPCRouter } from "@/trpc/router";
2+
import type { TRPCRouter } from "@/integrations/trpc/router";
33

44
export const { TRPCProvider, useTRPC } = createTRPCContext<TRPCRouter>();

templates/react/file-router/src/routes/__root.tsx.ejs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ import appCss from '../styles.css?url'
1111
<% } %><% if (addOnEnabled["tanstack-query"]) { %>
1212
import type { QueryClient } from '@tanstack/react-query'
1313
<% if (addOnEnabled.tRPC) { %>
14-
import { TRPCRouter } from '@/integrations/trpc/router'
14+
import type { TRPCRouter } from '@/integrations/trpc/router'
15+
import type { TRPCOptionsProxy } from '@trpc/tanstack-react-query'
1516
<% } %>
1617
1718
interface MyRouterContext {
1819
queryClient: QueryClient
1920
<% if (addOnEnabled.tRPC) { %>
20-
trpc: TRPCRouter
21+
trpc: TRPCOptionsProxy<TRPCRouter>
2122
<% } %>
2223
}<% } %>
2324

@@ -78,4 +79,4 @@ function RootDocument({ children }: { children: React.ReactNode }) {
7879
</html>
7980
)
8081
}
81-
<% } %>
82+
<% } %>

0 commit comments

Comments
 (0)