Free course
TypeScript Course
Learn TypeScript from the JavaScript you already know: inference, annotations, objects, unions, functions, generics, narrowing, and compiler configuration.
Prerequisites: JavaScript
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.
Take this course offline
Subscribe to my newsletter to get every free book, downloadable course, and complete software download.
Get the downloadsCourse 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.