facebook/prop-types

Return value from checkPropTypes?

オープン

#169 opened on 2018/03/01

 (6 件のコメント) (31 件のリアクション) (0 人の担当者)JavaScript (389 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (4,379 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド