facebook/prop-types

Return value from checkPropTypes?

Aperta

#169 aperta il 1 mar 2018

 (6 commenti) (31 reazioni) (0 assegnatari)JavaScript (389 fork)batch import
help wanted

Metriche repository

Star
 (4379 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor