JavaScript & TypeScript

Chapter 8: TypeScript Type System Foundations

Understanding TypeScript as a compile-time structural type checker erased at runtime: `unknown` vs. `any`, discriminated unions, control-flow narrowing, and exhaustive `never` checks.