Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Quick info for return keyword to get the function return type #11261

Open
zhengbli opened this issue Sep 29, 2016 · 1 comment
Open
Labels
Domain: Quick Info e.g. hover text, tool-tips, and tooltips. Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Milestone

Comments

@zhengbli
Copy link
Contributor

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.

@mhegazy mhegazy added the Suggestion An idea for TypeScript label Sep 29, 2016
@sandersn
Copy link
Member

You could also show the @returns jsdoc. There's nowhere that this is displayed right now.

@DanielRosenwasser DanielRosenwasser added the Domain: Quick Info e.g. hover text, tool-tips, and tooltips. label May 24, 2018
@RyanCavanaugh RyanCavanaugh added the Experience Enhancement Noncontroversial enhancements label Aug 15, 2018
@RyanCavanaugh RyanCavanaugh added this to the Future milestone Aug 15, 2018
@weswigham weswigham added the In Discussion Not yet reached consensus label Nov 6, 2018
@RyanCavanaugh RyanCavanaugh removed the In Discussion Not yet reached consensus label Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domain: Quick Info e.g. hover text, tool-tips, and tooltips. Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

6 participants