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

JSDoc doesn't dig through type aliases #28267

Open
amcasey opened this issue Oct 31, 2018 · 0 comments
Open

JSDoc doesn't dig through type aliases #28267

amcasey opened this issue Oct 31, 2018 · 0 comments
Labels
Domain: JSDoc Relates to JSDoc parsing and type generation Domain: Type Display Bugs relating to showing types in Quick Info/Tooltips, Signature Help, or Completion Info Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Milestone

Comments

@amcasey
Copy link
Member

amcasey commented Oct 31, 2018

TypeScript Version: 6fd6a04

Code

/** @param containingNode Node to check for parse error */
type AddUnusedDiagnostic = (containingNode: number, type: number, diagnostic: number) => void;

Expected behavior: containingNode in the JSDoc comment binds to the parameter of the function type (e.g. rename, quick info, document highlights, and GTD work).

Actual behavior: containingNode doesn't bind to anything and the quick info just says it has type any.

@weswigham weswigham added Domain: JSDoc Relates to JSDoc parsing and type generation Domain: Type Display Bugs relating to showing types in Quick Info/Tooltips, Signature Help, or Completion Info Experience Enhancement Noncontroversial enhancements labels Nov 1, 2018
@RyanCavanaugh RyanCavanaugh added the Suggestion An idea for TypeScript label Mar 7, 2019
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Aug 16, 2019
@sandersn sandersn removed their assignment Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domain: JSDoc Relates to JSDoc parsing and type generation Domain: Type Display Bugs relating to showing types in Quick Info/Tooltips, Signature Help, or Completion Info Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

4 participants