Loading
Current section: 2. Union Types 6 exercises
Problem

Discriminated Unions

Loading exercise

Transcript

00:00 Okay. Now we can get into discriminated unions. And no, not not Out of out of context, that sounds kinda bad. We're not discriminating against unions. But we're going to use the discriminated unions pattern in TypeScript.

00:12 This is a really common pattern and I'm excited for you to explore it and get used to it. So jump on into this and we'll talk about it when you're done.