This is a bit tricky; typically, propType validators have an early pass when optional and propValue == null, and an early failure when required and propValue == null - but that prevents explicitNull from working properly.
Thus, I kept the early pass/failure for undefined, but omitted it for null and delegated that responsibility to each individual propType validator. Thoughts?
Fixes #12.
This is a bit tricky; typically, propType validators have an early pass when optional and
propValue == null
, and an early failure when required andpropValue == null
- but that preventsexplicitNull
from working properly.Thus, I kept the early pass/failure for
undefined
, but omitted it fornull
and delegated that responsibility to each individual propType validator. Thoughts?