fp-errors - Handle TypeScript errors with fp-ts values
Provides practical fp-ts patterns for representing errors as Either or TaskEither values, chaining fallible operations, and accumulating validation errors.
Tags
Updated: 2026-10-16Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Replace exceptions with values
- Chain fallible operations
- Accumulate validation errors
- Transform Either values
- Handle multiple error types
- Use Either and TaskEither
Inputs
- TypeScript code
- Validation rules
- Domain error types
- Fallible operations
Outputs
- fp-ts error-handling code
- Either-based results
- Accumulated validation errors
- Explicit error contracts
Requirements
- TypeScript project
- fp-ts package
