Is there a way to implement a transformer for TRPC? #778
Replies: 1 comment
-
@tothdanielax Hi, I'm not familiar with tRPC transformers, but TypeBox does support both data encoding and decoding, so I expect it should be technically possible. Relevant TypeBox Documentationhttps://github.com/sinclairzx81/typebox#types-transform I'm not sure how these functions would integrate with tRPC at a high level, but would be interested in community experimentation to investigate how a an integration could work (and identify any integration issues). Would you like to investigate a possible integration? Would be happy to have TypeBox reference a community implementation (both default tRPC type integration and transformers), as quite a few users have asked about tRpc integration in the past. |
Beta Was this translation helpful? Give feedback.
-
Is there a similar way to implement a TypeBox based tranformer (for decoding/encoding MongoId _ids mainly) for TRPC?
Beta Was this translation helpful? Give feedback.
All reactions