Refactor to convert variable to destructuring #25946
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Suggestion
An idea for TypeScript
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.
The text was updated successfully, but these errors were encountered: