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
The function tsuquyomi#hint() doesn't seem to be able to return inferred return types in some cases.
In the following example instead of function add(a: number): number | void it returns function add(a: number): number.
functionadd(a: number){if(a>10)returna+10}add(10)
The text was updated successfully, but these errors were encountered:
timonson
changed the title
No inferred return types
No inferred return type undefinedDec 21, 2019
The function
tsuquyomi#hint()
doesn't seem to be able to return inferred return types in some cases.In the following example instead of
function add(a: number): number | void
it returnsfunction add(a: number): number
.The text was updated successfully, but these errors were encountered: