TypeScript Course
TypeScript is JavaScript with a type system bolted on top — every valid JavaScript file is already valid TypeScript, but TypeScript lets you describe the shapes of your data and catches a huge class of mistakes before your code ever runs, right in your editor. This course takes you from a plain .ts file through interfaces, generics, and the compiler configuration that ties it all together.
What you'll learn
The first half covers TypeScript's type system on its own terms: basic types, interfaces for describing object shapes, typed functions, and classes with access modifiers. The second half moves into the features that make TypeScript genuinely powerful rather than just "JavaScript with type annotations" — enums and tuples, generics for reusable typed code, union and intersection types, narrowing a union down to a specific case, the built-in utility types that reshape existing types, and modules for splitting code across files.
Every lesson shows real TypeScript code next to what actually happens — either the JavaScript output after compiling, or the exact compiler error tsc produces when a lesson is specifically about catching a mistake. This course assumes you're already comfortable with JavaScript fundamentals; if you're not, the JavaScript course is the place to start first.
Lessons
- Introduction
- Basic Types
- Interfaces
- Functions
- Classes
- Enums & Tuples
- Generics
- Union & Intersection Types
- Type Narrowing
- Utility Types
- Modules
- Compiling with tsconfig