Loading
Current section: 3. Literal Types 4 exercises
Problem

Single Source Of Truth

Loading exercise

Transcript

00:00 As cons can also be used to help us identify a single source of truth, that being the code rather than the types. And I really, really just love deriving my types from the source code. And so that's what we're gonna be doing in this exercise with as const. We did a little bit of that in the last exercise in the last exercise step, I should say. In this step, we're gonna be doing a bit more of that.

00:22 So jump into it, and we'll see you when you're done.