diff --git a/templates/react/file-router/src/routes/__root.tsx.ejs b/templates/react/file-router/src/routes/__root.tsx.ejs index 5811b42..8d2fca8 100644 --- a/templates/react/file-router/src/routes/__root.tsx.ejs +++ b/templates/react/file-router/src/routes/__root.tsx.ejs @@ -11,13 +11,14 @@ import appCss from '../styles.css?url' <% } %><% if (addOnEnabled["tanstack-query"]) { %> import type { QueryClient } from '@tanstack/react-query' <% if (addOnEnabled.tRPC) { %> -import { TRPCRouter } from '@/integrations/trpc/router' +import type { TRPCRouter } from '@/integrations/trpc/router' +import type { TRPCOptionsProxy } from '@trpc/tanstack-react-query' <% } %> interface MyRouterContext { queryClient: QueryClient <% if (addOnEnabled.tRPC) { %> - trpc: TRPCRouter + trpc: TRPCOptionsProxy <% } %> }<% } %> @@ -78,4 +79,4 @@ function RootDocument({ children }: { children: React.ReactNode }) { ) } -<% } %> \ No newline at end of file +<% } %>