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
Normally refinements always create issues with a ZodIssueCode.custom error code, but with superRefine you can create any issue of any code. Each issue code is described in detail in the Error Handling guide: ERROR_HANDLING.md.
My understanding is that I can create any custom code I want. Is that understanding correct or does it mean that I can use any of the pre-existing codes only?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Doc says:
My understanding is that I can create any custom code I want. Is that understanding correct or does it mean that I can use any of the pre-existing codes only?
Beta Was this translation helpful? Give feedback.
All reactions