Learning Roadmap
Your path through TypeScript
Work through the levels in order — each builds on the previous. Finish the quiz at the end of a lesson to mark the level complete and earn XP.
Fundamentals
Introduction to TypeScript
Learn what TypeScript is, why it exists, and how it relates to the JavaScript you already know. You will see your first type annotations and understand what the compiler does (and does not do) for you.
Installing TypeScript
Set up TypeScript in a real project: install the compiler with npm, generate a tsconfig.json, compile your first file, and learn the modern ways to run TypeScript directly during development.
Variables & Data Types
Master TypeScript's primitive types, learn how type inference lets you omit most annotations, and understand special types like any, unknown, and literal types.
Functions
Learn to type function parameters and return values, use optional and default parameters, write arrow functions, and understand how void and function types work in TypeScript.
Arrays & Objects
Type collections and structured data: array types, tuples, object type annotations, optional and readonly properties, and safe patterns for accessing nested data.
Intermediate
Interfaces
Define reusable, named object shapes with interfaces. Learn extension, method signatures, structural typing in depth, and declaration merging - plus when to reach for an interface over an inline type.
Type Aliases
Name any type with the type keyword: objects, unions, tuples, functions, and intersections. Understand how aliases differ from interfaces and when to choose each.
Enums
Understand numeric and string enums, how they behave at runtime, const enums, and why modern TypeScript often prefers literal union types instead.
Classes
Write fully typed classes: property declarations, constructors, access modifiers, parameter properties, inheritance, and implementing interfaces.
Modules
Organize code across files with ES modules: named and default exports, imports, type-only imports, barrel files, and how module resolution and path aliases work in TypeScript.
Advanced
Generics
Generics let you write functions, classes, and types that work over many types while preserving full type information, eliminating the need for any or repetitive overloads.
Advanced Types
Unions, intersections, conditional types, mapped types, and template literal types turn TypeScript's type system into a small functional language for computing types from other types.
Utility Types
TypeScript ships a standard library of type transformers — Partial, Pick, Omit, Record, ReturnType, and friends — that let you derive new types from existing ones instead of duplicating shape definitions.
Decorators
Modern (TC39 stage 3, TypeScript 5+) decorators let you wrap and annotate classes and their members declaratively, replacing boilerplate like logging, memoization, and registration with reusable annotations.
Type Guards
Type guards are runtime checks the compiler understands — typeof, instanceof, in, and custom predicates — that narrow broad types like unknown or unions down to something you can safely use.
Async Programming
TypeScript types asynchronous code precisely: Promise<T> captures what a promise resolves to, async/await keeps that typing through readable control flow, and Awaited<T> models unwrapping in generic code.
Expert
Configuration (tsconfig)
tsconfig.json controls what TypeScript accepts, what JavaScript it emits, and how modules resolve — understanding strict flags, target, module, and paths turns mysterious build behavior into deliberate choices.
Performance & Best Practices
Write TypeScript that stays fast to compile and safe to change: prefer inference with explicit boundaries, quarantine any, use unknown and satisfies, and structure types so the checker helps you instead of fighting you.
Design Patterns
Classic design patterns — builder, factory, observer, singleton — take on new strength in TypeScript, where generics and unions let the compiler enforce the pattern's rules instead of relying on discipline.
Real-World Projects
Bring everything together: structure a production TypeScript application, type its API boundaries honestly, share types across layers, and use types to make tests sharper rather than noisier.