What problem does it solve?
errore brings Go-style error handling to TypeScript by returning errors as values (Error | T) instead of throwing, enabling safer, more predictable control flow and easier debugging. This pattern reduces unhandled exceptions and supports typed error metadata, cause chaining, and type guards.
Core Features & Use Cases
- Use createTaggedError to define domain errors with typed properties and fingerprinting.
- Convert external library errors and rejections into structured errors via .catch and errore.try boundaries.
- Use matchError, findCause, and partition to pattern-match, inspect causes, and split results for robust, composable flows.
- Apply at the boundaries with third-party code and I/O to keep core logic flat and deterministic.
Quick Start
Use errore to implement error-as-values patterns across your TypeScript project.