I was running a submit handler for a form where I want to fake a loading variable. When I added the following I had this error:

    setTimeout(function() {
      this.isLoading = false;
    }, 2000);
 error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation.

Solution

Use an arrow function in order to nog lose the this context:

setTimeout(() => {this.isLoading = false;},2000)