Sometimes, we want to disable all TypeScript type checking.
In this article, we’ll look at how to disable all TypeScript type checking.
How to disable all TypeScript type checking?
To disable all TypeScript type checking, we set the checkJs
option to false
.
For instance, we write
{
"compilerOptions": {
//...
"checkJs": false
//...
}
}
in tsconfig.json to disable all type checks by setting checkJs
to false
in compilerOptions
.
Conclusion
To disable all TypeScript type checking, we set the checkJs
option to false
.