-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyDomain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
TypeScript Version: 3.5.0-dev.20190404
Search Terms:
- refactor / refactoring
- convert to destructed parameters
Code
For a simple js file
function doStuff(a, b, c) {
return a + b + c;
}
doStuff('a', 'b', 1);
doStuff('x', 'y', 2);
Expected behavior:
A convert to restructured refactoring is available on doStuff
Actual behavior:
I'm not seeing any such refactoring show up in js files
Playground Link:
Related Issues:
Metadata
Metadata
Assignees
Labels
Domain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyDomain: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolIn DiscussionNot yet reached consensusNot yet reached consensusSuggestionAn idea for TypeScriptAn idea for TypeScript