WarsawJS Talk English

Better Error Handling Patterns in Typescript

Presented at Meetup #137 Wed, Apr 8, 2026
Location Kolektyw3 by ETHWarsaw, ul. Koszykowa 54, 00-675 Warszawa (3rd floor)

About this Talk

I'll explore three patterns that make errors explicit, type-safe, and composable:

Discriminated unions as return types: encoding success and failure directly in the type system so the compiler enforces handling.

The safeAwait pattern: taming async code without nested try/catch blocks.

The Errore pattern: Go-style error handling for TypeScript with full type narrowing and compile-time safety.

No monads, no wrapper libraries, no functional programming required. Just practical patterns you can adopt incrementally.

Illarion Koperski

Illarion Koperski

CTO at Vaan, eCommerce Specialist, Shopify Expert

View Full Profile

Share this talk

← Back to Talk Archive