facebook/prop-types

Return value from checkPropTypes?

Open

#169 aberto em 1 de mar. de 2018

Ver no GitHub
 (6 comments) (31 reactions) (0 assignees)JavaScript (389 forks)batch import
help wanted

Métricas do repositório

Stars
 (4.379 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador