Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

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
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants