Skip to content

Parameter property shorthand in class constructors #2

@Trildar

Description

@Trildar

As detailed here: https://www.typescriptlang.org/docs/handbook/classes.html

Currently doesn't transpile such shorthand, resulting in the constructor not assigning properties as expected.
For example, a constructor function, constructor(public A: string) {}, would transpile to a constructor function with an empty body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions