Skip to content

FixΒ #20

@RyanCavanaugh

Description

@RyanCavanaugh

πŸ”Ž 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

Image

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

Image

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions