Currently in TypeScript assinging new fields with this.foo = 'bar' outside of the constructor is a static error.
In JavaScript with // @check-ts that is not the case.
We would need to implement a rule that looks at all methods and checks their field usage compared to the constructor.
Currently in TypeScript assinging new fields with
this.foo = 'bar'outside of the constructor is a static error.In JavaScript with
// @check-tsthat is not the case.We would need to implement a rule that looks at all methods and checks their field usage compared to the constructor.