fp-errors - Handle Errors with fp-ts Values
Teaches practical TypeScript error handling with fp-ts Either and TaskEither, including chaining failures and accumulating validation errors.
Tags
Updated: 2026-10-16Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Represent errors with Either
- Chain fallible operations
- Accumulate validation errors
- Wrap throwing functions safely
- Transform success and error values
Inputs
- TypeScript code
- Error-handling requirements
- Validation rules
- Form data
Outputs
- Either-based TypeScript code
- TaskEither-based error flows
- Accumulated validation errors
- Success or failure values
Requirements
- TypeScript environment
- fp-ts library
