• Unwraps the success value, or returns the fallback value fallback if it is an Err.

    Type Parameters

    • E

    • T

    Parameters

    • fallback: ((err) => T)

      The function to provide a fallback value.

        • (err): T
        • Parameters

          • err: E

          Returns T

    Returns ((res) => T)

    The unwrapped value.

      • (res): T
      • Parameters

        Returns T

Generated using TypeDoc