Knowledge · frontend

Enforcing exhaustiveness — making the compiler tell you when a union grows a new case

Which of the three layers — assertNever, satisfies Record, pattern matching libraries — to reach for and when, and why a catch-all default branch hides what you missed

Date
2026-08-24
Reading time
7 min
Confidence
Inferred

This page is a machine translation of the Korean original. Read the original

Document graph

Related documents

Documents that mention this

Related Knowledge

Tags

typescriptexhaustivenessdiscriminated-unionassertneversatisfies