Posts tagged “generics”
2 posts found
Strict Mode Isn't Enough: Using TypeScript's New Variance Annotations to Catch Subtle Generic Bugs
June 26, 2026
Most generic type bugs stem from variance issues that strict mode doesn't catch. TypeScript's new 'in' and 'out' annotations finally give developers explicit control over covariance and contravariance in generic parameters.
typescriptgenericstype-safety+2
Generics in TypeScript
March 5, 2020
This post aims to go over generics in TypeScript and talk about what they are, how they work, and why we even need them.
javascriptgenericstypescript