-
Notifications
You must be signed in to change notification settings - Fork 21
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
value validation types #71
Comments
Any validation violations would be warnings in the console. |
@dashed Would this fit your use case? https://github.com/HurricaneJames/react-immutable-proptypes |
@unindented Cool! I'll definitely check this out. |
@dashed Yeah, the question is. Do we think this is something that Immstruct should do, or is this a React thing? |
@mikaelbr I feel this would help debugging a lot. I didn't really elaborate on my first post; but I wanted to suggest to 'copy' proptype checking that React does and perform the type check against a Structure instance instead of |
Something like this for immstruct structures
https://github.com/tgriesser/state-types-react
https://facebook.github.io/react/docs/reusable-components.html#prop-validation
API sketch:
The text was updated successfully, but these errors were encountered: