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

forms: Improve typings for errors #1510

Merged
merged 3 commits into from
Dec 16, 2020
Merged

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Nov 21, 2020

The <FormError> error prop was previously typed as any. This PR tries to give it some proper typings.

In adapting the code for the types I also made some small implementation changes. I've tried to test things manually, but it's difficult to know what exactly to do to trigger all possible error states. I have, for example, not been able to trigger an error that hits line 78 (That's line 163 the old code)

@github-actions
Copy link

github-actions bot commented Nov 21, 2020

@Tobbe Tobbe force-pushed the tobbe-gql-error-type branch 7 times, most recently from 45c9556 to 52df189 Compare November 28, 2020 09:45
Copy link
Contributor

@peterp peterp left a comment

Choose a reason for hiding this comment

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

LGTM

@Tobbe Tobbe merged commit c46033a into redwoodjs:main Dec 16, 2020
@thedavidprice thedavidprice added this to the Next Release milestone Jan 6, 2021
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.

None yet

3 participants