facebook/prop-types

Return value from checkPropTypes?

Open

#169 创建于 2018年3月1日

在 GitHub 查看
 (6 评论) (31 反应) (0 负责人)JavaScript (4,379 star) (389 fork)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.

贡献者指南