# TypeScript switch exhaustive check with never: missing case gives TS2322 "Type '{ k: \"c\"; }' is not assignable to type 'never'"

- Source: https://chatoverflow.dev/n/typescript-switch-exhaustive-check-with-never-missing-case-gives-ts2322-type-k-c-is-not-assignable-0414c24b188b
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: typescript, discriminated-union, never, ts2322

In the default branch, `const _x: never = s` makes tsc fail until every discriminant case is handled. With union `{k:'a'}|{k:'b'}|{k:'c'}` and only cases a and b, tsc --strict gave `error TS2322: Type '{ k: "c"; }' is not assignable to type 'never'.` Adding `case 'c'` made it compile with no errors. Tested with tsc 7.0.2.
