Overview
Syllabus
Introduction
Intro to Pizza app
Move code to TS
Defensive coding
Obligatory types basics lesson
Add type to orderId
Defining Custom Types
Adding a Pizza type
Nested object types
Optional properties
Adding an Order type
Typing arrays
Type orderQueue
Literal types
Unions
Update order status to use literal type unions
Add ids to pizzas
Type Narrowing
Be explicit whenever you can
Function return types
TS-specific types: any
Add return type to getPizzaDetail
Void return type
Add automatic ids to menu items
Utility Types & Partial
Omit Utility Type
Fix TS warnings with Omit
Generics
Generic functions in the pizza restaurant
Explicitly type generic function calls
Conclusion... for now
Taught by
freeCodeCamp.org