Posts tagged “callbacks”
2 posts found
TypeScript 6.0 Strict Function Types: Why Contravariance Breaks Your Existing Callbacks
August 18, 2026
TypeScript 6.0 makes strictFunctionTypes the default, breaking callbacks that relied on bivariant parameter checking. Learn why contravariance matters and how to migrate production code without sacrificing type safety.
typescripttype-safetystrict-mode+2
How Do Promises Work?
May 23, 2019
Promises have changed the way most JavaScript developers write asynchronous code. So what are promises, and how do they work?
promiseasynchronousawait+3