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

Optionalize FormikErrors #405

Merged
merged 1 commit into from
Feb 6, 2018
Merged

Conversation

weswigham
Copy link
Contributor

In the examples given in JS in the docs, a function that is expected to return a FormikErrors object creates one with const errors = {}, and then conditionally adds only some members with keys of Values to it. This indicates that these members should be optional, which is critical for correct checking in consumer code under strictNullChecks mode in typescript.

In the examples given in JS in the docs, A function that is expected to return a `FormikErrors` object creates one with `const errors = {}`, and then conditionally adds only some members to it. This indicates that these members should be optional, which is critical for correct checking in consumer code under `strictNullChecks` mode in typescript.
@jaredpalmer jaredpalmer merged commit b6786f4 into jaredpalmer:master Feb 6, 2018
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.

2 participants