Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

Learn TypeScript - Full Course for Beginners

via freeCodeCamp

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner course introduces TypeScript by converting a pizza-ordering app to typed code, covering custom and nested types, arrays, unions, narrowing, return types, utility types, and generics.

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

Reviews

Start your review of Learn TypeScript - Full Course for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.