¿Qué es fp-ts-task-either?
Patrones asíncronos funcionales que utilizan TaskEither para el manejo de errores con seguridad de tipos en TypeScript Fuente: whatiskadudoing/fp-ts-skills.
Patrones asíncronos funcionales que utilizan TaskEither para el manejo de errores con seguridad de tipos en TypeScript
Instala rápidamente el skill de IA fp-ts-task-either en tu entorno de desarrollo mediante línea de comandos
Fuente: whatiskadudoing/fp-ts-skills.
TaskEither combines the laziness of Task with the error handling of Either, providing a powerful abstraction for async operations that can fail.
| Create success | TE.right(value) | Wrap value in Right | | Create failure | TE.left(error) | Wrap error in Left | | From Promise | TE.tryCatch(promise, onError) | Convert Promise to TE | | Transform value | TE.map(f) | Apply f to success value | | Transform error | TE.mapLeft(f) | Apply f to error value |
| Chain operations | TE.chain(f) / TE.flatMap(f) | Sequence dependent operations | | Recover from error | TE.orElse(f) | Try alternative on error | | Handle both cases | TE.fold(onError, onSuccess) | Pattern match result | | Parallel array | TE.traverseArray(f) | Map + sequence in parallel |
Campos y comandos estables para citas de IA/búsqueda.
npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-ts-task-eitherPatrones asíncronos funcionales que utilizan TaskEither para el manejo de errores con seguridad de tipos en TypeScript Fuente: whatiskadudoing/fp-ts-skills.
Abre tu terminal o herramienta de línea de comandos (Terminal, iTerm, Windows Terminal, etc.) Copia y ejecuta este comando: npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-ts-task-either Una vez instalado, el skill se configurará automáticamente en tu entorno de programación con IA y estará listo para usar en Claude Code, Cursor u OpenClaw
https://github.com/whatiskadudoing/fp-ts-skills