-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 4.0.0-dev.20200701
Search Terms: jsdoc deprecated tag
Code
interface ESMap<K, V> { }
/** @deprecated */
interface Map<T> extends ESMap<string, T> {}
declare const Map: new <K, V>() => ESMap<K, V>;
new Map<string, number>(); // 'Map' is crossed out
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
:
Related Issues: #38523
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do thisYou can do this