Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "Export unused declaration" codefix #60762

Open
6 tasks done
pacexy opened this issue Dec 14, 2024 · 0 comments
Open
6 tasks done

Add a "Export unused declaration" codefix #60762

pacexy opened this issue Dec 14, 2024 · 0 comments
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@pacexy
Copy link

pacexy commented Dec 14, 2024

πŸ” Search Terms

fix unused

βœ… Viability Checklist

⭐ Suggestion

Add a "Export unused declaration" codefix.

πŸ“ƒ Motivating Example

Before:

function Foo () {

}

After (depends on module type):

export function Foo () {

}

πŸ’» Use Cases

Sometime we may forget to export a declaration and hence the declaration is marked as unused.
To fix it, we have to back to export it manully, which is cumbersome.

@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature labels Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants