-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Incorrect type inference of the action callback arguments #2211
Comments
Um, since you obviously have CodeSandbox in that picture, can you please share the link as well? The one you linked above does not have such code in App.tsx. |
@FredyC Sorry, I updated the link and removed unrelated code. |
Thanks. Well, I am not so sure Line 20 in db4b3e7
It's already crazy overload hell. Expanding that to get the correct argument type might not be worth it. I think this is one of the cases where explicit type casting will be necessary ... I will leave this open if someone else wants to chime. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions. |
I have an:
[x] Issue:
Go to
components/App.tsx
action
, which fixes "Parameter XXX implicitly has an 'any' type" #500I am expecting correct type inference for the arguments of
action
callback. All arguments have type 'unknown':Expected type 'number'.
The text was updated successfully, but these errors were encountered: