-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Can't pass the return value of a callback with known type to another function that should accept that kind of type. #49603
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
Comments
Issues like this tend to be closed as "unactionable" with the comment:
If you want to avoid this fate you should probably edit the issue now with the requisite information. And maybe remove the "Duplicate" label too. |
I checked the code anyway and this is a correct error; it's not possible to construct a valid |
Can I ask you why it's not possible? I'm trying to understand. |
Also if I try to just pass values it correctly give me intellisense and it doesn't errors out. It also does not errors out if I don't add the second generic to IFunction. |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Given this situation in the Playground i should be able to pass the return value of the callback in cssFunction as the style value for the call to domFunction but typescript yells at me that is not assignable.
Is this a valid bug or is this expected behavior?
The text was updated successfully, but these errors were encountered: