facebook/prop-types

Return value from checkPropTypes?

Open

#169 建立於 2018年3月1日

在 GitHub 查看
 (6 留言) (31 反應) (0 負責人)JavaScript (389 fork)batch import
help wanted

倉庫指標

Star
 (4,379 star)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南