Skip to content

Give a better error message for captured global 'this' #25977

@DanielRosenwasser

Description

@DanielRosenwasser

Users are sometimes confused as in #25975 #13842 regarding the behavior of this. When using noImplicitThis, you'll currently get

'this' implicitly has type 'any' because it does not have a type annotation.

But I think we can do a little better.

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: Error MessagesThe issue relates to error messagingFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions