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
As you can see, the .def is no longer underscore-prefixed in Zod 4 as it's part of the public API. I'm pointing people towards this approach over dedicated methods in Zod 4, which is also why I don't want to adding an .unwrap() method in Zod 3 now. (It's also about to be legacy anyway 🤷♂️.)
Hello and thanks for this wonderful lib!
It seems that contrary to
zodOptional.unwrap()
,zodList.element
orzodUnion.options
, I can't get access to the schema of aZodSet
elements 🤔Is there a method to achieve it? I can try and open a PR if not.
Thomas
The text was updated successfully, but these errors were encountered: