Relay starts as a process that must refuse to boot with bad config. You build its typed config loader: read process.env and CLI args, reject bad input, and get a precise type for everything that passed.
| # |
Lesson |
| 1 |
Tooling: Bun, tsc, and the strict tsconfig flags that matter |
| 2 |
Primitives, literal types, as const and satisfies |
| 3 |
Arrays, tuples and readonly |
| 4 |
Object types, optional fields and exactOptionalPropertyTypes |
| 5 |
Unions and intersections |
| 6 |
Narrowing: typeof, in, instanceof, equality, predicates, assertions |
| 7 |
Functions: optional and rest parameters, overloads, this |
| 8 |
type vs interface |
| 9 |
Enums vs as const objects |
| 10 |
any vs unknown vs never |
| 11 |
ES modules, import type, verbatimModuleSyntax, and the capstone |