JS object destructuring: allow to shorten expression when assignment is renamed back to original property value #58447
Labels
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Current behavior
In a restructuring assignment expression, when alias is renamed back to original property's name, it has the full form (
const { property: property } = testObject;
in the following example):Proposed behavior
Shorten form of assignment (
const { property } = testObject;
in this example) - either automatically, or enabled with configuration.The text was updated successfully, but these errors were encountered: