Distribute typesafe tRPC Client in an NPM library
Hi ! super fan of trpc over here.
We are building a javascript sdk for our API that is essentially a pacakged version of the trpc client.
However when compiling the code, the "materialized" type is a generic client/router and not the inferred typesafe version.
e.g
Any thoughts ? tRPC seems like a perfect fit for this use case.
Thanks!
0 Replies