@mikuroxina/mini-fn
    Preparing search index...

    Type Alias ErrorCat<M, T>

    ErrorCat: CatT<M, T> & Readonly<
        {
            context: (context: string) => Result.Result<Error, T>;
            withContext: (fn: () => string) => Result.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