Trying to lazy init "createTRPCProxyClient"
I'm trying to wrap
createTRPCProxyClient
, but having trouble with the generic. Maybe I'm just a TS idiot, but I thought something like this would work:
I'm getting the following error:
What am I not appreciating here?5 Replies
@alexkatt halp me dawg
@ me on Monday
@alexkatt '@ing' you 🙂
ah yeah
this is because we have TS helpers that ensures that you add a transformer in the client if we have it on the server
so what are you trying to do with your wrapper?
can you make a ts playground and i can help from there?
Sure!