tRPCttRPC
Powered by
PinkiePieP
tRPC•12mo 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
json
field in it, and TS types are mismatching (TS types assume no wrappers will be there)
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

middleware’s for routers
KrishnaKKrishna / ❓-help
8mo ago
createTRPCReact transformers getting type error
Arsalan HussainAArsalan Hussain / ❓-help
3y ago
Access procedures with same names and same parameters, but in different routers, generically
neoneyNneoney / ❓-help
3y ago