Remove @type
tag from hover info
#57819
Labels
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
π Search Terms
jsdoc tag @type remove
β Viability Checklist
β Suggestion
TypeScript should strip the
@type
JSDoc annotation from the description in tooltips such as hover information and autocompletion.TypeScript already strips type information from other JSDoc tags such as
@typedef
,@property
,@param
, and@returns
, but not for@type
. For example, try hovering over various tokens in this playground.π Motivating Example
TypeScript already stripped type information in various JSDoc tags in editor descriptions. Now it also strips the
@type
tag.Try it in this playground
π» Use Cases
To provide a better DX for libraries developed in JSDoc.
The inclusion of the
@type
tag in descriptions looks weird. Also the information is shown twice, as TypeScript also shows the processed type information.There arenβt any.
The text was updated successfully, but these errors were encountered: