Copy JSDoc from type when destructing arguments. #27601
Labels
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Search Terms
jsdoc argument destructuring
Suggestion
When specifying an interface which has JSDoc trivia, it should flow into any arguments that are destructured from that.
Refs #11859
Use Cases
When getting intellisense on destructured arguments, it is useful to be able to get the JSDoc of the specified interface. Currently, because TypeScript does not provide support for naming destructured arguments, obtaining the trivia seems like a more logical way anyways.
Examples
An example:
Currently, you get no JSDoc trivia.
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: