riprsaR
tRPC2y ago
4 replies
riprsa

Cannot figure out the correct type

I am trying to use tRPC outside of React. I use it in React, but I need a separate way to use it. I found out about trpc.useUtils().client, which is perfect. But I want to make it a global object for CSR components. I cannot figure out the right type to include in to the declaration.

Thank you
Solution
export const api = createTRPCClient<AppRouter>({ ... })
Was this page helpful?