filmov
tv
Typescript: exhaustive switches

Показать описание
When you have a switch with multiple options and you want to add an option, how can we force our compiler to complain when we forgot an option? Learn how to use the never type to solve this problem. A nice trick to use the compiler and get our code less buggy.