TypeScript · Type Checking

allowUnusedLabels

Disable error reporting for unused labels.

Syntax
"allowUnusedLabels": true

Example

Example
{
  "compilerOptions": {
    "allowUnusedLabels": true
  }
}

More in this group

allowUnreachableCode 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