Posts tagged “compiler-flags”
4 posts found
TypeScript strictPropertyInitialization in Real Codebases: Patterns That Pass the Compiler Without Lying
October 21, 2026
Five battle-tested patterns for satisfying strictPropertyInitialization without definite assignment assertions that mask bugs. Learn when optional properties, constructor methods, and dependency injection give you type safety that holds at runtime.
TypeScript exactOptionalPropertyTypes: The Strict Flag That Catches the Bugs strict Misses
July 27, 2026
Most production TypeScript bugs stem from a single assumption: that strict mode catches every type safety hole. It doesn't. The exactOptionalPropertyTypes flag exposes runtime crashes that strict mode silently permits—here's why teams overlook it and how to fix it.
TypeScript noUncheckedIndexedAccess in 2026: The Flag You Should Have Turned On Years Ago
July 20, 2026
Most production crashes from undefined array access stem from a single compiler flag being off. Teams pay for this oversight twice a month.
TypeScript 5.8 erasableSyntaxOnly Flag: What It Means for Your Codebase in 2026
June 22, 2026
The erasableSyntaxOnly compiler flag changes how teams write TypeScript for native Node.js execution. Learn which features it disables, why that matters for build pipelines, and how to migrate production code without breaking changes.