Free TypeScript Course

25 free TypeScript lessons for JavaScript developers. Learn types, interfaces, generics, narrowing, async patterns, React, and real-world API patterns — run every example in your browser, no install or signup required.

intermediate

Interfaces and Types

Master TypeScript interfaces and type aliases. Learn extending, intersection types, declaration merging, and when to use each.

+144 XP
22 min read
1 prerequisites

Generics

Write reusable, type-safe code with TypeScript generics. Learn generic functions, interfaces, classes, and constraints.

+150 XP
25 min read
1 prerequisites

Modules

Organize TypeScript code with ES modules. Learn named exports, default exports, type-only imports, re-exports, and barrel files.

+140 XP
20 min read
1 prerequisites

Error Handling

Learn robust TypeScript error handling with try/catch, custom error classes, the Result pattern, and type narrowing for caught errors.

+140 XP
20 min read
1 prerequisites

Utility Types

Master TypeScript utility types like Partial, Pick, Omit, and Record. Transform existing types without repetition.

+144 XP
22 min read
1 prerequisites

Type Narrowing

Learn TypeScript type narrowing with typeof, instanceof, in operator, discriminated unions, and user-defined type guards.

+150 XP
25 min read
2 prerequisites

Classes And OOP

Learn TypeScript classes and OOP with constructors, inheritance, access modifiers, and interfaces for type-safe object-oriented code.

+156 XP
28 min read
3 prerequisites

Async TypeScript

Master async/await in TypeScript with typed Promises, async functions, and error handling patterns for non-blocking, readable code.

+154 XP
27 min read
3 prerequisites

Type-Safe APIs

Build type-safe APIs in TypeScript with generic fetch wrappers, discriminated union responses, and runtime type guards.

+150 XP
25 min read
4 prerequisites

Debugging TypeScript

Learn to read TypeScript error messages, use the type system for debugging, write exhaustiveness checks, and apply runtime techniques.

+150 XP
25 min read
4 prerequisites

Frequently Asked Questions

Is this a free TypeScript course?
Yes. LearningTypeScript.org offers free TypeScript lessons with browser-based practice for types, interfaces, generics, narrowing, async code, and API patterns.
Who should learn TypeScript here?
JavaScript developers get the most value because the course explains TypeScript as a practical upgrade to everyday JavaScript, not as an abstract type theory course.
Can I practice TypeScript without installing Node?
Yes. You can run TypeScript examples in the online playground and use the lessons before setting up a local compiler or project.
What TypeScript topics are covered?
The course covers variables and types, interfaces, generics, utility types, narrowing, React, Next.js, Zod validation, type-safe APIs, and debugging.