TypeScript: Beginner to Advanced
A complete TypeScript course from first install to generics, mapped and conditional types, typed API calls, strict mode and migrating a JavaScript project. Every lesson has working code and an exercise.
This course teaches TypeScript step by step, from the very first type annotation to advanced type-level programming. You should know basic JavaScript: variables, functions, arrays, objects and, ideally, promises. If you do, the course works for complete TypeScript beginners and also fills gaps for people who already use it daily.
We start with why TypeScript exists and how to set it up with the compiler (tsc) and a tsconfig.json for TypeScript 5.x. Then we cover basic types, functions, objects, interfaces versus type aliases, unions and narrowing, literal types and enums, classes, generics and the built-in utility types. The advanced part covers mapped and conditional types, modules and declaration files, and typing asynchronous code and API responses.
The last topic is about real projects: what strict mode turns on, how to migrate a JavaScript project one file at a time, and a final project that ties everything together. All code samples were checked with the TypeScript compiler in strict mode.
Getting started
Core types
Unions, literals and enums
Classes and generics
Advanced types
The HussoTech Academy account publishes and maintains the free courses on this site. Lessons are written and reviewed by Ghulam Murtaza and checked against the current versions of each language and tool.