Closed eps1lon closed 4 years ago
Fixes { value?: unknown } being considered value: PropTypes.any.isRequired.
{ value?: unknown }
value: PropTypes.any.isRequired
The propTypes validator would throw runtime errors for undefined which is fine at the type-level. We want the type-level semantics at runtime.
undefined
Thanks!
Fixes
{ value?: unknown }
being consideredvalue: PropTypes.any.isRequired
.The propTypes validator would throw runtime errors for
undefined
which is fine at the type-level. We want the type-level semantics at runtime.