PinkiePieP
tRPC11mo ago
1 reply
PinkiePie

different transformers for different routers

How can I specify a transformer per router? On the client, I use superjson with BatchLink for everything, except file uploads (no superjson, HttpLink). It works fine, but on the backend all routers use superjson, so the returned object has a wrapper with a single json field in it, and TS types are mismatching (TS types assume no wrappers will be there)
Was this page helpful?