Inferring ReturnType<T> from function with arguments falling back to any #29499
Labels
Fix Available
A PR has been opened for this issue
Question
An issue which isn't directly actionable in code
TypeScript Version: 3.3.0-dev.20190119
Search Terms:
Infering type from function return type
Infering from return type
Argument breaks return type inferring
Code
Expected behavior:
It is possible to infer the return type of the function for both situations
Actual behavior:
Type inferring only for the function that doesn't have any parameters and falling to
any
if any parameters appliedPlayground Link:
https://codesandbox.io/s/p3414yomnx
Related Issues:
The text was updated successfully, but these errors were encountered: