`.and` with default, expected behavior?
This fails with
error: Uncaught (in promise) AggregateError: someVal must be "foo" (was missing)
Is this expected? In rc 26 this worked - just upgraded to 30 and it does not.2 Replies
Using
.merge
fixed this FYI
Hmm yeah I'd say the newer version is accurate because you shouldn't really be able to intersect an optional or defaultable prop with a required prop and get anything other than a required prop
But I can see how that could be tricky. merge is usually the way to go for combining properties anyways