Type-safe errors in TypeScript with generators
Discover why most type-safe error handling libraries in TypeScript are built using generators.
Software Engineer
I'm a Software Engineer focused on building digital products combining technical expertise with strong product thinking. I enjoy working at the intersection of backend platforms, AI agents, and product strategy to turn complex problems into reliable, well-designed solutions.
You can read my blog articles , or get in touch with me.
Discover why most type-safe error handling libraries in TypeScript are built using generators.
Some precautions to avoid falling into the trap of leaky abstractions and why every abstraction eventually forces you to look under the hood. A reflection on Joel Spolsky's article.