Course contentsShow
TypeScript
Lesson 957 of 1,79622. The never TypePro lesson

Exhaustiveness in Switch Statements

Placing assertNever in the default case to catch missing branches in discriminated unions.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.