tRPCttRPC
Powered by
TaylorFayT
tRPC•3y ago•
1 reply
TaylorFay

How to make trpc output return strings and not dates

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?
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

trpc output dates are typed as strings and not dates
TaylorFayTTaylorFay / ❓-help
3y ago
How to use output validation for dates? (Zod, SuperJSON)
fengFfeng / ❓-help
2y ago
Make tRPC return Bad Request on Zod validation error?
ApteryxAApteryx / ❓-help
3y ago