sajad torkamani

Sometimes you might see a TypeScript error in a Jetbrains IDE when it doesn’t make any sense. For example, the error might say user has an implicitly any type but that’s clearly not the case.

In these cases, try to restart the TS service by clicking on the TypeScript version text at the bottom right of the IDE and then selecting Restart TypeScript service.

Troubleshoot TypeScript errors in Jetbrains IDEs