Closed
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