ErrorCat<M, T>: CatT<M, T> & Readonly<{
    context: ((context) => Result<Error, T>);
    withContext: ((fn) => Result<Error, T>);
}>

A CatT which helps you to handle a fail-able computation with an error message. Your provided context message will be used in message value of an Error object.

Type Parameters

  • M

  • T

Generated using TypeDoc