TypeScript Compiler Options

noCheck — TypeScript compiler diagnostics

Skips full semantic type checking, while critical parsing and emission diagnostics can still be reported. Introduced in 5.6. A separate full type-checking pass is necessary to detect ordinary type errors. Declaration generation can still require lazy type inference without isolatedDeclarations. Do not treat successful emission as type safety. Baseline: TypeScript 5.8.3. Default: false. Create the labeled files in an isolated directory and run the commands below. This deliberately invalid assignment emits JavaScript; Node prints string. The comparison full-check scenario reports TS2322.

Formal Syntax & Structure

typescript syntaxtypescript
{  "compilerOptions": {    "noCheck": true  }}

Parameters & Attributes

NameTypeDescription
noCheckbooleanCompiler option; default: false.

Working Example

Example Snippettypescript
// File: tsconfig.json (omit this label){  "compilerOptions": {    "target": "ES5",    "module": "CommonJS",    "lib": [      "ES5"    ],    "strict": true,    "types": [],    "outDir": "dist",    "noEmitOnError": true,    "noCheck": true  },  "files": [    "index.ts"  ]}// File: index.ts (omit this label)export const count: number = "bad";
// Run these commands in order in an isolated project:// tsc -p . --pretty false// node -e console.log(typeof require("./dist/index.js").count)
TypeScript Reference