The fp-ts Types Reference skill provides an immediate decision tree, common imports, and idiomatic code patterns for working with the fp-ts functional programming library in TypeScript. It helps developers determine the exact abstraction needed—such as Option, Either, Task, or TaskEither—based on whether an operation is asynchronous or fallible. Ideal for functional refactoring and eliminating boilerplate, this skill delivers one-line utilities for handling nullables, wrapping try/catch blocks, and executing safe pattern matching.
主要功能
01Decision tree for selecting between Option, Either, Task, and TaskEither
02One-line helper snippets for wrapping nullables and try/catch blocks
03Best practices for handling asynchronous error boundaries
04Standardized import cheat sheets for core fp-ts modules
05Idiomatic pattern matching examples using pipe and match
0649,963 GitHub stars
使用场景
01Refactoring imperative null checks and try-catch blocks into functional pipelines
02Quickly looking up module imports and pattern-matching syntax during TypeScript development
03Choosing the right fp-ts monadic container for complex business logic