fp-errors - Handle TypeScript errors with fp-ts
Teach practical TypeScript error handling with fp-ts Either, TaskEither, validation, and error accumulation.
Tags
Updated: 2026-10-16Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Replace exceptions with values
- Chain fallible operations
- Accumulate validation errors
- Convert throwing functions safely
- Handle synchronous errors
- Handle asynchronous errors
Inputs
- TypeScript source code
- Error-handling requirements
- Validation rules
- Domain error types
- Asynchronous operation definitions
Outputs
- Either results
- TaskEither workflows
- Accumulated validation errors
- Typed error contracts
- Error-handling code patterns
Requirements
- TypeScript environment
- fp-ts library
- TaskEither support for asynchronous workflows
