-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Domain: 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
There are two scenarios that come up for me all the time that presently don't have refactoring support:
- Refactoring a named export into the default export and vice versa
- Refactoring a bunch of explicit named imports into a namespace import and vice versa
Commentary:
I think both of these refactorings would be helpful and be used frequently. 1 is important to me because I can't decide on the shape of a module's exports until its export surface area is complete, and I switch between the two frequently during development.
2 is important to me when a module's named exports grow and grow and on the import side and I finally reach a point where I would like to move to a namespace import to avoid having to name every single import. This transformation is very painful to do by hand.
aluanhaddad, andriyor and adrian-gierakowski
Metadata
Metadata
Assignees
Labels
Domain: 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