You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use zod directly in my project, safeParse and parse give the same result.
But if I use indirectly via some 3rd-party lib, like https://github.com/muzychenka/vue3-websocket, then safeParse doesn't respect coerce, transform....
We have a schema:
and data:
If call
.parse
, thecreated_at
field is converted toDate
, which is correct, but if call.safeParse
, thecreated_at
is still a string.The text was updated successfully, but these errors were encountered: