TypeScript · Lesson 111 of 120
Project Review
What we built.
Let's look back. Eleven small files, each with one job, and every line checked by the compiler.

- 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.
- Unions + interfaces
- Zod
- Generics
- Result types
- Mapped types + utilities
- 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.
| key | value |
|---|---|
| Status | returned |
| Storage | a JSON file |
| Feature | discounts |
| Web | an 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