Fp TS Refactor

当把命令式 TypeScript 代码(try/catch、null 检查、回调、类 DI、循环、Promise 链)迁移到 fp-ts 函数式范式时使用;产出 Either/Option/Task/Reader 等价改写、组合管线与渐进迁移路径;不适用于简单同步代码、性能热点循环、第三方接口边界与团队不熟悉 fp-ts 的场景。触发词:fp-ts、TaskEither、Either/Option、函数式重构

findscripter 7267d2c 6.7 KB Updated

File contents

findscripter/everything-skills/tree/main/02-engineering/fp-ts-refactor commit 7267d2ccb8

Frequently asked questions

npx skillmds@latest add findscripter/fp-ts-refactor