facebook/prop-types

Return value from checkPropTypes?

开放

#169 创建于 2018年3月1日

 (6 条评论) (31 个反应) (0 位负责人)JavaScript (389 个派生)batch import
help wanted

仓库指标

星标
 (4,379 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南