-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Refactor to convert variable to destructuring #25946
Copy link
Copy link
Closed
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolSuggestionAn idea for TypeScriptAn idea for TypeScript
Metadata
Metadata
Assignees
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbolSuggestionAn idea for TypeScriptAn idea for TypeScript
Type
Fields
Give feedbackNo fields configured for issues without a type.
TypeScript Version: 3.1.0-dev.20180721
Code
Expected behavior:
After:
Note: I think it should generate
{ x, y, z }even if they're not all currently used (meaning, it should use every property declared in the return type off). That way it's useful to perform this refactor immediately after writing the call tof(), before the result has been used.Actual behavior:
No such refactor.