AI Hints
Home›TypeScript Tutorial›Project: Final Run
TypeScript · Lesson 111 of 120

Project Review

What we built.

⏱ 2 min read▶ Video at 1:27:42🎓 Free
Watch this lesson in the TypeScript courseWatch on YouTube ↗Full TypeScript course

Let's look back. Eleven small files, each with one job, and every line checked by the compiler.

Project Review
From the video: Project Review
  • Eleven files
  • One job each
  • All checked

What we used

Union and object types for the domain. Zod for input. Generics for the store. Result types for errors. Mapped types for events. Utility types for reports. Async for the warehouse. And tests for the behaviour.

  1. Unions + interfaces
  2. Zod
  3. Generics
  4. Result types
  5. Mapped types + utilities
  6. async + tests

Ideas to extend it

Add a returned status, and follow the compiler. Save orders to a JSON file. Add discounts, with their own rules. Or put the library behind a small web API.

keyvalue
Statusreturned
Storagea JSON file
Featurediscounts
Weban HTTP API

Summary

You built a complete, fully typed library, using nearly everything in the course. Next, best practices.

Key takeaways
  • Typed domain
  • Safe input
  • Checked rules
Next up: Best Practices — everyday habits