Free course
TypeScript Course
Learn TypeScript from the JavaScript you already know: inference, annotations, objects, unions, functions, generics, narrowing, and compiler configuration.
Prerequisites: JavaScript
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it. Join my free newsletter and you get this course plus every other book and course I published.
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it.
Your progress
of lessons completed.
Course completed.
What you'll learn
Add useful types to a small JavaScript program, configure the compiler, and handle uncertain data without turning type checking off.
Course contents
Start using TypeScript
Install the compiler, run a first program, and read type errors.
Types and inference
Primitives, arrays, tuples, annotations, and special types.
Objects and unions
Describe object shapes and compose types deliberately.
Functions and generics
Type calls, callbacks, reusable functions, and constraints.
Narrowing uncertain values
Refine unions with checks, guards, and discriminants.
The compiler and runtime
Configure strict checking and understand where types stop.