facebook/prop-types

Return value from checkPropTypes?

Open

#169 opened on 2018年3月1日

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

説明

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.

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

Return value from checkPropTypes? · facebook/prop-types#169 | Good First Issue