TypeScript · Type Checking

allowUnreachableCode

Disable error reporting for unreachable code.

Syntax
"allowUnreachableCode": true

Example

Example
{
  "compilerOptions": {
    "allowUnreachableCode": true
  }
}

More in this group

allowUnusedLabels alwaysStrict noFallthroughCasesInSwitch noImplicitAny noImplicitOverride noImplicitReturns noImplicitThis noPropertyAccessFromIndexSignature

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course