File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
add-on/tRPC/assets/src/integrations/trpc Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " create-tsrouter-app" ,
3
- "version" : " 0.10 .0-alpha.2" ,
3
+ "version" : " 0.11 .0-alpha.2" ,
4
4
"description" : " Tanstack Application Builder" ,
5
5
"bin" : " ./dist/index.js" ,
6
6
"type" : " module" ,
Original file line number Diff line number Diff line change 1
1
import { createTRPCContext } from "@trpc/tanstack-react-query" ;
2
- import type { TRPCRouter } from "@/trpc/router" ;
2
+ import type { TRPCRouter } from "@/integrations/ trpc/router" ;
3
3
4
4
export const { TRPCProvider, useTRPC } = createTRPCContext < TRPCRouter > ( ) ;
Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ import appCss from '../styles.css?url'
11
11
< % } %><% if (addOnEnabled[" tanstack-query" ]) { % >
12
12
import type { QueryClient } from ' @tanstack/react-query'
13
13
< % 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'
15
16
< % } % >
16
17
17
18
interface MyRouterContext {
18
19
queryClient: QueryClient
19
20
< % if (addOnEnabled .tRPC ) { % >
20
- trpc: TRPCRouter
21
+ trpc: TRPCOptionsProxy < TRPCRouter>
21
22
< % } % >
22
23
}< % } %>
23
24
@@ -78,4 +79,4 @@ function RootDocument({ children }: { children: React.ReactNode }) {
78
79
< / html>
79
80
)
80
81
}
81
- < % } %>
82
+ < % } %>
You can’t perform that action at this time.
0 commit comments