facebook/prop-types

Return value from checkPropTypes?

Open

#169 aperta il 1 mar 2018

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

Metriche repository

Star
 (4379 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

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