Development
Code
TypeScript
TypeScript
Course
TypeScript course: zero to hero in 100 lessons
Types, classes, generics and the compiler first, then Node, async, tests, the DOM and three capstone projects.
Open
→
All articles
typescript/
basics/
(1)
TypeScript basics: what the language is and where it is used
course/
(120)
TypeScript course: zero to hero in 100 lessons
1. Getting started
(5)
Chapter overview
1 What is TypeScript and where it runs
2 Install TypeScript
3 Your first program
4 tsconfig.json
2. Types basics
(7)
Chapter overview
5 Basic types
6 any, unknown, never
7 Arrays and tuples
8 Type aliases
9 Interfaces
10 Unions and literals
3. Functions, generics and narrowing
(11)
Chapter overview
11 Function types
12 Parameters
13 Overloads
14 Generics
15 Constraints
16 Return types
17 Arrow functions
18 Callbacks
19 Narrowing
20 Assertions
4. Classes, enums and modules
(11)
Chapter overview
21 Classes
22 Constructors
23 Modifiers
24 implements
25 Abstract classes
26 static
27 Getters and setters
28 Enums
29 ES modules
30 Decorators
5. Advanced types
(11)
Chapter overview
31 Discriminated unions
32 Intersections
33 Mapped types
34 Conditional types
35 infer
36 Template literal types
37 keyof and typeof
38 Utility types
39 satisfies
40 const assertions
6. The compiler and tooling
(11)
Chapter overview
41 tsc CLI
42 tsconfig deep dive
43 Strict mode
44 Source maps
45 Declaration files
46 Linting
47 Formatting
48 Debugging
49 Project references
50 Publishing packages
7. The Node runtime
(11)
Chapter overview
51 Run with Node
52 npm scripts
53 argv and env
54 Files with fs
55 path and os
56 JSON IO
57 Dates
58 Crypto random
59 Timers
60 process
8. Async programming
(11)
Chapter overview
61 Callbacks to promises
62 Promises
63 async and await
64 Promise.all
65 Promise.race
66 HTTPS client
67 Abort and timeouts
68 Async error handling
69 Sequential vs parallel
70 Event loop
9. Testing
(6)
Chapter overview
71 Tests with assert
72 Test layout
73 Fixtures
74 Test doubles
75 CI tests
10. The browser
(6)
Chapter overview
76 DOM basics
77 DOM events
78 Fetch in browsers
79 Forms
80 Web storage
11. Packages and typed APIs
(6)
Chapter overview
81 Npm packages
82 Bundling concept
83 SPA concepts
84 Typed API client
85 Hand-rolled validation
12. Patterns and streams
(11)
Chapter overview
86 Iterators and generators
87 Mixins
88 Branding nominal types
89 Result types
90 Options objects
91 Builder
92 Event emitters
93 Streams
94 Workers
95 Deserialization
13. Capstones and the roadmap
(6)
Chapter overview
96 Capstone: todo CLI
97 Capstone: JSON API
98 Capstone: utils library
99 Modern TypeScript tour
100 Hero roadmap: the whole course on one page
Installation
(6)
TypeScript in Docker
Install TypeScript on FreeBSD
Install TypeScript on macOS
Install TypeScript on Rocky Linux
Install TypeScript on Ubuntu
Install TypeScript on Windows 11
vite/
(1)
Vite: instant dev server