TypeScript
TypeScript could not determine the type of this
TypeScript could not infer a safe type for this in the current function context, so it treated the implicit any as an error.
TypeScript
TypeScript could not infer a safe type for this in the current function context, so it treated the implicit any as an error.
Observed message
error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.
Why it happens
How to fix it
Official reference
TypeScript TSConfig: noImplicitThisRelated errors
Explore more