Closed dariajung closed 9 years ago
Parameter properties need to be desguared, or handled otherwise:
class Animal { constructor(private name: string) { console.log(name); } }
is sugar for
class Animal { private name: string; constructor(name: string) { this.name = name; } }
name is a property that, if renamed in the parameter property declaration, also needs to be renamed in the constructor body if used.
name
Duplicate of #39. Moving comments over.
Parameter properties need to be desguared, or handled otherwise:
is sugar for
name
is a property that, if renamed in the parameter property declaration, also needs to be renamed in the constructor body if used.