01 - Strict Mode Is Not Enough: 100 Type Breaches in a 100% Strict TypeScript Monorepo
strict, strictTemplates, and strictInjectionParameters all on, yet 54 ': any' and 46 'as any' survive across 3884 files.
Advanced TypeScript: conditional generics, mapped types, template literal types, type-level programming, the new Go compiler, and migration strategies for enterprise codebases.
This series collects 6 articles (approximately 80 minutes of total reading time), designed for a level Advanced. The main topics covered are TypeScript, generics, types, compiler.
strict, strictTemplates, and strictInjectionParameters all on, yet 54 ': any' and 46 'as any' survive across 3884 files.
On a boundary, nobody checks the type you wrote. unknown makes it checkable: real compiler errors and the honest cost of the choice.
typeof, instanceof, in and type predicates. With the hole nobody names: the compiler verifies a guard's signature, not its body.
One boolean and two optional fields allow eight states, and four mean nothing. How to make them inexpressible and get warned when the union grows.
Annotating an object literal with an interface costs you the list of its keys. The compiled proof, the real error and the rule for choosing.
Two concatenated string parameters are two typos that compile. How to describe the shape of a key and have it checked, with the compiler's real errors.
Have you read all the articles? Check how much you've learned by taking this series' quizzes.