What's the use case for intersect over merge? #2703
Unanswered
npearson72
asked this question in
Q&A
Replies: 1 comment
-
One example that came up for me today is I wanted to combine an object with a record, which required me to use
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was a little confused by this part of the documentation:
When would I ever prefer the "less useful"
ZodIntersection
instance over theZodObject
?Beta Was this translation helpful? Give feedback.
All reactions