prop-types
https://github.com/facebook/prop-types
JavaScript
Runtime type checking for React props and similar objects
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
JavaScript not yet supported1 Subscribers
Add a CodeTriage badge to prop-types
Help out
- Issues
- There should be a way to validate the "shape" of an array.
- Add prop type for Refs
- PropTypes.exact for all props has errors
- checkPropTypes: add argument that allows external logging
- Output warnings using console.warn
- Better prop types warnings
- PropTypes.node forbids true but flow typing accepts it, causing runtime warning
- Switch the build process to rollup.js
- Add ability to throw error instead of warning in tests
- Add isDefined and isNotNull parallels to isRequired
- Docs
- JavaScript not yet supported