You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
interfaceBar{}classFoo{publicstatichigherOrderComponent(): any{returnclassimplementsBar{publicconstructor(){console.log(this);// "this" is valid here but tslint is complaining}};}}
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
This improperly flags this in an anonymous class returned by a static function, something that is typically used to construct higher-order components.
Expected behavior
this
used in a class scoped inside a static function is valid.The text was updated successfully, but these errors were encountered: