Result.prototype.andThen<U, F extends BaseError>(fn: (value: T) => Result<U, F>): Result<U, E | F>
Chains operations that return Results (also known as flatMap).
If this Result is Ok, calls the function with the Ok value and returns its Result. If this Result is Err, returns the Err without calling the function.
F extends BaseError
The type of the new error