T
tRPC

❓-help

How to make trpc output return strings and not dates

TTaylorFay1/12/2024
I am not using superjson I would like for all of my trpc routes to return dates as strings. However, right now, the types coming from my router show the output as dates. Any idea on how I can get the types to show as strings?
Nnlucas1/12/2024
You're definitely using a transformer if that's happening. By default they're strings

Looking for more? Join the community!