Exhaustively handle enum values in switch/case at compile time
Note: This post assumes basic understanding of Type narrowing via equality and the never
type.
Many Typescript users have a love/hate relationship with enums. Admittedly, their current…