-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed as not planned
Labels
7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.e.g. hover text, tool-tips, and tooltips.Help WantedYou can do thisYou can do this
Milestone
Description
π Search Terms
@deprecated deprecated default export re-export reexport alias import
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about the keywords listed above
β― Playground Link
https://stackblitz.com/edit/oqdywijb?file=index.ts
π» Code
// mod.ts
/** @deprecated please don't use this */
export const depr = 'deprecated';
/** Please use this one */
export const notDeprecated = 'not deprecated';
/** @deprecated please import { notDeprecated } instead */
export default notDeprecated;// index.ts
import defaultExport, { depr, notDeprecated } from './mod.js';
console.log(defaultExport);
console.log(depr);
console.log(notDeprecated);π Actual behavior
The "please import { notDeprecated } instead" message is not shown in the JSDoc popup
π Expected behavior
I expect to see the deprecation reason.
Something like this
Additional information about the issue
I've found two similar issues, one which is closed and one that's still open. None of them talk about default exports though, so I wanted to make a separate one just for that
#53754
#53960
Metadata
Metadata
Assignees
Labels
7.0 LS MigrationBugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.e.g. hover text, tool-tips, and tooltips.Help WantedYou can do thisYou can do this