Was ist fp-ts-task-either?
Funktionale asynchrone Muster mit TaskEither für die typsichere Fehlerbehandlung in TypeScript Quelle: whatiskadudoing/fp-ts-skills.
Funktionale asynchrone Muster mit TaskEither für die typsichere Fehlerbehandlung in TypeScript
Installieren Sie den KI-Skill fp-ts-task-either schnell in Ihrer Entwicklungsumgebung über die Kommandozeile
Quelle: 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 |
Stabile Felder und Befehle für KI/Such-Zitate.
npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-ts-task-eitherFunktionale asynchrone Muster mit TaskEither für die typsichere Fehlerbehandlung in TypeScript Quelle: whatiskadudoing/fp-ts-skills.
Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/whatiskadudoing/fp-ts-skills --skill fp-ts-task-either Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw
https://github.com/whatiskadudoing/fp-ts-skills