Closed merlinstardust closed 4 years ago
This is intentional because of how explicitNull works; if bool
is optional, then undefined
will always be allowed, and explicitNull
will never trigger.
We should probably add additional tests that flip the order tho (if they aren’t already there), and those would allow for bool
.
The or tests seem to repeat the double required case.
The above should instead be the following