Skip to content

What (if any) is the plan for assigning to undeclared properties in ES6 classes #2393

Closed
@sccolbert

Description

@sccolbert

The following snippet is valid ES6, but does not compile due to the undeclared property thing. Since TypeScript is aiming to be a superset of ES6, how will this situation be approached?

class Thing {
    constructor() {
        this.thing = 12;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already createdQuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions