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

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Embark on a comprehensive TypeScript journey with this hands-on course designed for beginners. Discover how TypeScript can simplify your coding process and reduce errors through practical examples centered around a pizza app. Explore fundamental concepts such as basic types, custom types, nested object types, and optional properties. Dive into advanced topics including literal types, unions, type narrowing, function return types, and utility types like Partial and Omit. Master the art of working with arrays, queues, and generics in TypeScript. By the end of this 2-hour course, gain the skills to write more robust and maintainable code using TypeScript's powerful features.

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.