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

Expose PropTypes API for manual use in production code #270

Closed
vitalif opened this issue Apr 19, 2019 · 1 comment
Closed

Expose PropTypes API for manual use in production code #270

vitalif opened this issue Apr 19, 2019 · 1 comment

Comments

@vitalif
Copy link

vitalif commented Apr 19, 2019

Hi, PropTypes is actually a very compact and convenient type checker, so it could be useful to use it in production code, for example, to validate user input. But currently it contains checks explicitly preventing it from being used like that. Could you please remove these checks or make a separate build/library for that?

@ljharb
Copy link
Collaborator

ljharb commented Apr 19, 2019

Seems related to #34.

You can use the development build in production; see the docs added in #262, also in the readme.

@ljharb ljharb closed this as completed Apr 19, 2019
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

2 participants