TypeScript · Type Checking

noFallthroughCasesInSwitch

Enable error reporting for fallthrough cases in switch statements.

Syntax
"noFallthroughCasesInSwitch": true

Example

Example
{
  "compilerOptions": {
    "noFallthroughCasesInSwitch": true
  }
}

More in this group

allowUnreachableCode allowUnusedLabels alwaysStrict 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