In this course, you rewrote the Millbrook Birders’ import. The old script asserted that the export held sightings, the type check passed, and undefined went on the year list. The new one checks every value from outside before it trusts its type.
What You Can Do Now
After working through this course, you can:
- Treat data from files and APIs as
unknown - Check it once at the boundary with type guards or a schema
- Type async code
- Tell a type assertion that’s justified from one that hides a bug