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

When Unions Are Better: Known Fixed Options

Use union types when you have a fixed set of concrete possibilities known at authoring time.

This lesson is for subscribers

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