facebook/prop-types

Return value from checkPropTypes?

Open

#169 opened on Mar 1, 2018

View on GitHub
 (6 comments) (31 reactions) (0 assignees)JavaScript (4,379 stars) (389 forks)batch import
help wanted

Description

Is there a good reason not to return false if checkPropTypes fails any of the validations? I can't think of one myself. If no one disagrees I can do a PR.

This would be useful for those of us that want to use checkPropTypes for our own validation needs outside of React.

Contributor guide