Project: A Typed Todo List
Interfaces, unions, generics and narrowing together. Read the code, Run it, then try adding a field to Todo and watch TypeScript point to every place that needs updating.
Exampletypescript
Now break it: change a status to "finished".
Exampletypescript
Quick check
Why is `status: Status` better than `status: string`?
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.