Skip to content

Support computed properties in destructuring patterns #1838

@JsonFreeman

Description

@JsonFreeman

Add support for things like

var { ["some" + "Name"]: x } = { ["some" + "Name"]: 0 };

In variables, parameters, and assignments.

This involves parsing, type check and emitting in ES6. Also, eventually we will need to support Symbols in destructuring patterns as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptES6Relates to the ES6 SpecHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions