Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement React.PropTypes.exactly #6130

Closed
chicoxyzzy opened this issue Feb 26, 2016 · 1 comment
Closed

Implement React.PropTypes.exactly #6130

chicoxyzzy opened this issue Feb 26, 2016 · 1 comment

Comments

@chicoxyzzy
Copy link
Contributor

I took use case below from some gitter chat where @JustBlackBird wanted some property to be String or exactly false

Use case

PropTypes.oneOfType([
  PropTypes.string,
  PropTypes.exactly(false)
]);

instead of

PropTypes.oneOfType([
  PropTypes.string,
  PropTypes.oneOf([false])
]);

I can implement it if it does make sense.

@chicoxyzzy
Copy link
Contributor Author

moved to #6166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant