Now to get a function return type the only way is to hover on function declaration or reference locations; however if the function body is quite long, it can be annoying to go back and forth. We could provide the function return type information if the user hovers on the return
keyword.
You could also show the @returns
jsdoc. There's nowhere that this is displayed right now.
Most helpful comment
You could also show the
@returns
jsdoc. There's nowhere that this is displayed right now.