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

Basic Discriminated Union Example

Creating a simple union with a 'kind' or 'type' property to distinguish shapes.

This lesson is for subscribers

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