• Applies fn to the contained success value, or returns the fallback value by fallback if it is an Err.

    Type Parameters

    • E

    • U

    Parameters

    • fallback: ((err) => U)

      The function to provide a fallback value.

        • (err): U
        • Parameters

          • err: E

          Returns U

    Returns (<T>(fn) => ((res) => U))

    The mapped value.

      • <T>(fn): ((res) => U)
      • Type Parameters

        • T

        Parameters

        • fn: ((t) => U)
            • (t): U
            • Parameters

              • t: T

              Returns U

        Returns ((res) => U)

          • (res): U
          • Parameters

            Returns U

Generated using TypeDoc