Course contentsShow
TypeScript
Lesson 420 of 1,7969. Union TypesPro lesson

The never Type in Switch Statements

Using never assignments in default cases to enforce that all union variants are explicitly matched.

This lesson is for subscribers

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