Function expression or method is not inferable when we have mapped type with a conditional type #60047
Labels
Help Wanted
You can do this
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
π Search Terms
conditional method arrow function
π Version & Regression Information
β― Playground Link
Playground Link
π» Code
π Actual behavior
For the first two calls we get an error while the third one is successful
π Expected behavior
All three calls should be successful
Additional information about the issue
Removing the constraint from
F
(Playground Link) or changing it toF extends Record<keyof F, unknown>
(Playground Link) will remove the error.The text was updated successfully, but these errors were encountered: