What problem does it solve?
Go-style error handling for TypeScript: return errors as values instead of throwing. Functions return an Error | T union, and checks use instanceof Error to narrow types, enabling flat control flow and explicit error handling. The errore toolkit provides helpers like createTaggedError, matchError, findCause, and partition to compose robust, typed error strategies without heavy wrappers or monads.
Core Features & Use Cases
- Return errors as values (Error | T) to make failures explicit and type-safe.
- Tagged errors with cause chains, static type guards, and utilities (matchError, findCause, partition).
- Clear boundary handling for async boundaries and third-party libraries; enables predictable error propagation.
Quick Start
Install the errore library and adopt Go-style error handling by returning errors as values in your TS code.