RSS feed iconGitHub logo

Articles about fp-ts

fp-ts is a library for functional programming in TypeScript. It offers many modules that make it easier to write functional code. It is oriented on minimizing side-effects, focusing on strictly-typed error handling, and reducing boilerplate.

Collecting multiple errors in fp-ts

2022-07-0214 minutes readfp-ts, TypeScript

The fp-ts library puts errors to the forefront and helps write type-safe code that correctly reports errors. Collecting errors from multiple operations can sometimes lead to boilerplate code. Let's see if there is a way to make that code shorter.

Read more