Design Patterns in TypeScript · Part 3 — Builder & Fluent APIs
Construct complex objects step by step: fluent method chaining, immutable builders, the type-safe staged (phantom-type) builder that makes illegal states unrepresentable, and when an options object is enough.