Generic argument inference no longer working for specific case #39080
Labels
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Rescheduled
This issue was previously scheduled to an earlier milestone
Milestone
TypeScript Version: >3.9.2
Search Terms: generic argument inference TS2345
Code
Expected behavior: In v3.8.3, the code above did not have any compilation error.
Actual behavior: Compilation error TS2345 when I do not explicitly pass the generic type.
Playground Link: Link
Note: I use React, here I only included the minimal React interfaces to reproduce the issue. The issue is also reproducible with React code directly here
The text was updated successfully, but these errors were encountered: