Course contentsShow
TypeScript
Lesson 1653 of 1,79638. Common Patterns and AntipatternsPro lesson

Discriminated Unions vs Flat String Unions

When to add a discriminant property instead of a union of 20 string literals.

This lesson is for subscribers

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