-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
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 symbolNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript
Description
At least week's design meeting, @sheetalkamat had the idea that we should consider applying refactorings for when you rename a .js
file to a .ts
file.
I think this is definitely worth experimenting with. From the refactoring pipeline, I could imagine things like
- moving from CommonJS to ES Modules
- lifting JSDoc annotations
- moving to classes
- inferring from usages
Then there's project configuration. I could see
- Generating a
tsconfig.json
- Installing
@types
dependencies for packages that need them.
ma2ciek, strothj and ethanresnick
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 symbolNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript