-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureDomain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
Search Terms
- Refactor
- import
Suggestion
For the code:
import { a, b, c} from './xyz';
console.log(a, b, c);
Add a refactoring to convert the import to:
import * as xyz from './xyz';
console.log(xyz.a, xyz.b, xyz.c);
With a rename being triggered on xyz
Use Cases
I can see this being useful:
- List of imports become too long and unmanageable.
- Make it clear in code where a name comes from
itsMapleLeaf
Metadata
Metadata
Assignees
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureDomain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript