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
This discussion was converted from issue #1578 on January 02, 2023 22:12.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
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
-
Given the following schema, fetching the
literal
value is quite trivial:But if I apply any effect, I no longer have to
shape
, since the schema is no ZodEffects rather than ZodObject:Is there a way I could do something like
schema.getFinalShape().x.value
?I was able to write something like:
but it would fail if the last "effect" would be a "refinement".
Beta Was this translation helpful? Give feedback.
All reactions