fp-ts 技能

结合专题指南和快速参考应用实用的函数式 TypeScript 模式。

完整 fp-ts 包覆盖组合、代数类型、Option、Either、异步效果、验证、转换、不可变数据、React、后端和重构。

适用场景

  • 表示可空值和类型化错误
  • 组合异步与验证管道
  • 重构 React 或后端 TypeScript

使用方法

提供现有代码和目标行为。简单问题用快速参考,设计或重构用完整指南,并匹配项目的 fp-ts 版本。

Skills

  • fp-ts Algebraic Data Types and Type Classes

    Product types, sum types, semigroups, monoids, Eq, Ord, and building custom type class instances for domain modeling in TypeScript

    whatiskadudoing/fp-ts-skills
  • fp-ts-async-practical

    Practical async patterns using TaskEither - clean pipelines instead of try/catch hell, with real API examples

    whatiskadudoing/fp-ts-skills
  • fp-ts-backend

    Functional programming patterns for Node.js/Deno backend development using fp-ts, ReaderTaskEither, and functional dependency injection

    whatiskadudoing/fp-ts-skills
  • Function Composition - Building from Small Pieces

    Practical patterns for composing functions in TypeScript using pipe, flow, and functional design principles

    whatiskadudoing/fp-ts-skills
  • Practical Data Transformations

    Everyday data transformations using functional patterns - arrays, objects, grouping, aggregation, and null-safe access

    whatiskadudoing/fp-ts-skills
  • fp-ts Do Notation

    Master Do notation in fp-ts to write readable, sequential functional code without callback hell. Covers bind, apS, let, bindTo and real-world patterns.

    whatiskadudoing/fp-ts-skills
  • Practical Error Handling with fp-ts

    Stop throwing everywhere - handle errors as values using Either and TaskEither for cleaner, more predictable code

    whatiskadudoing/fp-ts-skills
  • Functional Programming Fundamentals

    Core FP concepts including pure functions, currying, composition, and pointfree style - the foundation for mastering functional TypeScript

    whatiskadudoing/fp-ts-skills
  • fp-immutable

    Practical immutability patterns in TypeScript - spread operators, nested updates, readonly types, and when mutation is actually fine

    whatiskadudoing/fp-ts-skills
  • fp-ts Option and Either

    Functional error handling and nullable value management using fp-ts Option and Either types

    whatiskadudoing/fp-ts-skills
  • fp-ts Pipe and Flow Composition

    Master function composition in fp-ts using pipe and flow for building elegant, type-safe data transformation pipelines

    whatiskadudoing/fp-ts-skills
  • Pragmatic Functional Programming

    A practical, jargon-free guide to functional programming - the 80/20 approach that gets results without the academic overhead

    whatiskadudoing/fp-ts-skills
  • Functional Programming in React

    Practical patterns for using fp-ts with React - hooks, state, forms, data fetching. Works with React 18/19, Next.js 14/15.

    whatiskadudoing/fp-ts-skills
  • fp-refactor

    Comprehensive guide for refactoring imperative TypeScript code to fp-ts functional patterns

    whatiskadudoing/fp-ts-skills
  • Managing Side Effects Functionally

    Master functional approaches to side effects including IO types, effect isolation, idempotent operations, and quarantining impure code - essential patterns for reliable TypeScript applications

    whatiskadudoing/fp-ts-skills
  • fp-ts-task-either

    Functional async patterns using TaskEither for type-safe error handling in TypeScript

    whatiskadudoing/fp-ts-skills
  • fp-ts-validation

    Validation patterns using fp-ts with error accumulation, form validation, and API input validation

    whatiskadudoing/fp-ts-skills
  • fp-either-ref

    Quick reference for Either type. Use when user needs error handling, validation, or operations that can fail with typed errors.

    whatiskadudoing/fp-ts-skills
  • fp-option-ref

    Quick reference for Option type. Use when user needs to handle nullable values, optional data, or wants to avoid null checks.

    whatiskadudoing/fp-ts-skills
  • fp-pipe-ref

    Quick reference for pipe and flow. Use when user needs to chain functions, compose operations, or build data pipelines in fp-ts.

    whatiskadudoing/fp-ts-skills
  • fp-taskeither-ref

    Quick reference for TaskEither. Use when user needs async error handling, API calls, or Promise-based operations that can fail.

    whatiskadudoing/fp-ts-skills
  • fp-types-ref

    Quick reference for fp-ts types. Use when user asks which type to use, needs Option/Either/Task decision help, or wants fp-ts imports.

    whatiskadudoing/fp-ts-skills