forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
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
microsoft#53754
microsoft#53960
Copilot
Metadata
Metadata
Assignees
Labels
No labels