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

Adding New Union Variants Safely

How exhaustive checks force you to update all switch statements when adding a new variant to a union type.

This lesson is for subscribers

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