You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Broken type inference in generic-connected functions return typeΒ #48466
In 3rd example, without explicitly specifying foo parameter type, the return type of fetch function infers as unknown.
FYI: foo type infers correctly from Options inferface.
π Expected behavior
The code 3rd example works like the first two examples, correctly infering the fetch function's return type.
Activity
RyanCavanaugh commentedon Mar 28, 2022
See #47599
typescript-bot commentedon Mar 31, 2022
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.