01Chapter 1: Why TypeScript lets you mix up IDs: structural typingYou should know basic TypeScript type aliases, functions, generics, and intersection types. You should also understand that TypeScript types are checked at compile time, while JavaScript values run at runtime.1 min read
02Chapter 2: Creating branded values safely with smart constructorsAssume you know TypeScript type aliases, generics, intersections, and the difference between compile-time types and runtime values. A brand prevents accidental mixing at compile time, but it does not validate data by itself. Create branded values only after checking them at runtime.1 min read