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

Remove unused Formsy props; tighten types; improve runRules #392

Merged
merged 2 commits into from
Feb 16, 2020

Conversation

rkuykendall
Copy link
Member

@rkuykendall rkuykendall commented Feb 16, 2020

  • Simplify and improve runRules function
  • Remove unused Formsy props
  • Tighten types and remove as many anys as possible
  • Add undocumented props to documentation

Closes #390

@rkuykendall rkuykendall merged commit 0eaeef7 into master Feb 16, 2020
@rkuykendall rkuykendall deleted the deep-improvements branch February 16, 2020 01:04
errorMessage: any;
errorMessages: any;
errorMessage: string;
errorMessages: string[];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We haven't explicitly said that errorMessage(s) should be strings until now? Perhaps ReactNode would be better – (I think that encompasses string)? This would prevent breakage if users were passing something else renderable like a React element/component as an error message?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting observation! I don't see why not. Good catch. I'll add to a PR I'm doing now.

I really appreciate your reviews. It doesn't seem like there's enough activity on formsy-react to get all my PRs reviewed but I find any comments you can find time to make very very helpful.

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

Successfully merging this pull request may close these issues.

Invalid props like showError accepted by interface FormsyProps?
2 participants