• Maps two types on same time by two mappers.

    Type Parameters

    • E

    • D

    Parameters

    • mapE: ((err) => D)

      The function maps Ok value.

        • (err): D
        • Parameters

          • err: E

          Returns D

    Returns (<T, U>(mapT) => ((res) => Result<D, U>))

    The mapped value.

      • <T, U>(mapT): ((res) => Result<D, U>)
      • Type Parameters

        • T

        • U

        Parameters

        • mapT: ((ok) => U)
            • (ok): U
            • Parameters

              • ok: T

              Returns U

        Returns ((res) => Result<D, U>)

Generated using TypeDoc