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
To define a ZodTypeDef instance, one must pick a member of the enum ZodTypes. This is a problem for users wishing to define their own instances of ZodType, which requires a ZodTypeDef instance.
The solution is to factor the centralized aspects of Zod such that every combinator owns its error reporting, parsing logic, etc.
The text was updated successfully, but these errors were encountered:
@colinhacks I'm not expecting you to implement this, but if you're open perhaps we could determine a process that would make you feel comfortable accepting PRs going in this direction.
Just released zod@3.0.0-alpha.7 which eliminates ZodTypes. Now any subclass of ZodType that properly implements the _parse method is a first-class citizen.
To define a
ZodTypeDef
instance, one must pick a member of the enumZodTypes
. This is a problem for users wishing to define their own instances ofZodType
, which requires aZodTypeDef
instance.The solution is to factor the centralized aspects of Zod such that every combinator owns its error reporting, parsing logic, etc.
The text was updated successfully, but these errors were encountered: