values are marked deprecated when only type has @deprecated #39474
Labels
Bug
A bug in TypeScript
Domain: JSDoc
Relates to JSDoc parsing and type generation
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Milestone
TypeScript Version: 4.0.0-dev.20200701
Search Terms: jsdoc deprecated tag
Code
Expected behavior:
Map
the value is not deprecated and should not be crossed out.Actual behavior:
Map
the value is considered deprecated, even thoughMap
the type is not part of the value declaration ofMap
:In VSCode:
In Playground:
Playground Link: https://www.typescriptlang.org/play/index.html?ts=4.0.0-dev.20200707#code/KYDwDg9gTgLgBAbzgXwNwCh0EsB2NhQBmAhgMbBwCiAygLLFgA8A0gDRwBqAfIipgPQAqQXAACAE2BgowUsXzi4g-tjwES5OPSYAVHqHw5xAZyp0GjYzCi4A5uz2JkmSaQA2xGXFIQcVrQwAXHA4wADucCzs3AAUAJRwALw8NNpRnFwYmOihEWlWNjj2IQCuALYARgRc8ahw-PxwAOTaTXBYpj5+WJIyipLSsvLAijHGwBQAjiVYpADW7TiEEHFAA
Related Issues: #38523
The text was updated successfully, but these errors were encountered: