• Tries a function and converts the caught error to Left or returned value to Right.

    Returns

    Either<Error, R>

    Type Parameters

    • Error

    • R

    Parameters

    • fn: (() => R)

      () => R - function to try catch

        • (): R
        • Returns R

    Returns IEither<Error, R>

Generated using TypeDoc