Categories
TypeScript Answers

How to disable all TypeScript type checking?

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *