Home›TypeScript Tutorial
Free course
TypeScript Tutorial
Learn TypeScript from zero, one small and easy step at a time. Every idea is explained in plain words, then shown in real code, checked by the real TypeScript compiler, with real output and real errors.
Course contents
Every lesson has its own page with the explanation, code you can copy, the real output, screenshots from the video, and a link that jumps straight to that moment in the video.
1. Getting Started
- What Is TypeScript0:00
- Why Types Help0:56
- How It Runs2:07
2. First Steps
3. Basic Types
- Basic Types5:58
- Arrays6:47
- Tuples7:30
4. Escape Hatches and Nulls
- any and unknown8:10
- null and undefined9:10
- Basics Quiz10:03
5. Functions
- Functions11:15
- Return Types11:54
- Optional and Default Parameters12:32
6. More About Functions
- Rest Parameters13:14
- Function Types13:47
- void and never14:28
7. Object Types
- Object Types15:16
- Optional Properties16:06
- readonly16:52
8. Aliases and Interfaces
- Type Aliases17:40
- Interfaces18:29
- Aliases or Interfaces19:01
9. Combining Shapes
- Extending Interfaces19:54
- Intersection Types20:28
- Index Signatures21:16
10. Cart Practice and Unions
- Practice: A Shopping Cart22:01
- Objects Quiz22:36
- Union Types23:48
11. Narrowing
- Narrowing with typeof24:37
- Truthiness and Equality25:27
- The in Operator26:19
12. Literal and Discriminated Unions
- Literal Types26:53
- Discriminated Unions27:40
- Exhaustive Checks28:18
13. Type Guards and Practice
- Type Guards29:09
- Practice: Payment Results30:02
- Unions Quiz30:39
14. Enums and Assertions
- Enums31:51
- as const32:39
- Type Assertions33:29
15. Classes
- Classes34:20
- Access Modifiers34:58
- Parameter Properties35:53
16. Classes and Contracts
- Implementing Interfaces36:29
- Inheritance37:16
- Abstract Classes38:04
17. More About Classes
- Static Members38:44
- Getters and Setters39:18
- Classes Quiz39:53
18. Generics
- Why Generics41:03
- Generic Functions41:58
- Generic Constraints42:40
19. Generic Types
- Generic Interfaces43:19
- Generic Classes43:55
- Default Type Parameters44:29
20. Generics Practice and keyof
- Practice: A Typed Store45:01
- Generics Quiz45:39
- keyof46:56
21. Type Operators
- typeof Types47:39
- Indexed Access Types48:14
- Mapped Types48:51
22. Utility Types
- Partial and Required49:39
- Pick and Omit50:21
- Record50:49
23. Types from Types
- ReturnType and Parameters51:24
- Conditional Types52:02
- infer52:52
24. Template Types and Practice
25. Modules
- Modules56:06
- Type-Only Imports56:53
- Declaration Files57:40
26. Configuration and Packages
- tsconfig.json59:05
- Strict Mode59:58
- npm Packages and @types1:00:49
27. Async and Outside Data
- Promises and async1:01:40
- Typing JSON1:02:18
- Errors in catch1:03:11
28. Validation and Zod
- Validating Data1:03:54
- Zod1:04:48
- Practice: An API Client1:05:31
29. Overloads and Events
- Function Overloads1:06:12
- Type-Safe Events1:06:57
- Tooling Quiz1:07:41
30. Precise Types
- satisfies1:08:53
- Branded Types1:09:40
- Readonly Arrays1:10:17
31. Patterns
- Result Types1:10:58
- Node with TypeScript1:11:45
- Patterns Quiz1:12:16
32. Testing, Migrating, Mistakes
- Testing with Types1:13:26
- Migrating JavaScript1:14:19
- Common Mistakes1:15:07
33. Project: Types and Validation
- Project: The Plan1:15:54
- Project: Types1:16:54
- Project: Validation1:17:40
34. Project: Store, Rules, Errors
- Project: The Store1:18:28
- Project: Services1:19:19
- Project: Errors1:20:15
35. Project: Events, Reports, Async
- Project: Events1:21:12
- Project: Reports1:22:12
- Project: Async1:22:59
36. Project: Tests, CLI, Refactoring
- Project: Tests1:23:43
- Project: A CLI1:24:29
- Project: Refactoring1:25:21
37. Project: Final Run
- Project: Strictness1:26:08
- Project: Final Run1:27:04
- Project Review1:27:42
38. Habits and Library Types
- Best Practices1:28:31
- Performance of Types1:29:23
- Reading Library Types1:30:13
39. Cheat Sheets and Interviews
- Cheat Sheet: Basics1:31:08
- Cheat Sheet: Advanced1:31:55
- TypeScript Interview Questions1:32:36
40. Ecosystem and Next Steps
- The TypeScript Ecosystem1:33:42
- Final Quiz1:34:32
- What to Learn Next1:35:47