FP-TS Quick Reference

•
32k
•

Provides instant guidance and decision trees for functional programming types using the fp-ts library in TypeScript.

fp-types-ref is a specialized Claude Code skill designed to streamline functional programming workflows in TypeScript. It helps developers navigate the complexities of the fp-ts library by providing a logical decision tree for choosing between types like Option, Either, Task, and TaskEither based on error handling and asynchronous requirements. The skill includes essential boilerplate imports, common one-line patterns for data transformation, and pattern matching templates to ensure consistent, idiomatic functional code across your project.

主な機能

01Standardized pattern matching templates for Option and Either types
02Quick reference for pipe and flow composition patterns
03Interactive decision tree for selecting the correct fp-ts type
04One-line patterns for wrapping nullables, try/catch blocks, and async calls
05Comprehensive library of common fp-ts imports and aliases
0631,722 GitHub stars

ユースケース

01Determining whether to use TaskEither or TaskOption for a specific async operation
02Refactoring imperative try/catch logic into functional, type-safe structures
03Quickly inserting boilerplate imports for fp-ts modules without looking up documentation