We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For values { x: string [] }, touched is being typed as { x?: boolean }
{ x: string [] }
{ x?: boolean }
For values { x: string [] }, touched should be typed as { x?: boolean[] }
{ x?: boolean[] }
https://codesandbox.io/s/infallible-shape-nhd9i?file=/index.tsx:537-685 Edit the names of one of the friends. Note that in the console touched.friends is an array of booleans.
Replace boolean with boolean[] here I plan on making opened up a one line PR.
boolean
boolean[]
The text was updated successfully, but these errors were encountered:
Opened a PR
Sorry, something went wrong.
fix issue jaredpalmer#3455
a29f858
I think this is intended behavior, touched is describing the field not the contents of the field.
touched
Successfully merging a pull request may close this issue.
Bug report
Current Behavior
For values
{ x: string [] }
, touched is being typed as{ x?: boolean }
Expected behavior
For values
{ x: string [] }
, touched should be typed as{ x?: boolean[] }
Reproducible example
https://codesandbox.io/s/infallible-shape-nhd9i?file=/index.tsx:537-685
Edit the names of one of the friends. Note that in the console touched.friends is an array of booleans.
Suggested solution(s)
Replace
boolean
withboolean[]
hereI
plan on makingopened up a one line PR.The text was updated successfully, but these errors were encountered: