mapOrAsyncForResult
Return the result of transformer with using input as an argument for it if input is Ok(T).
Otherwise, return defaultValue.
Basically, this operation is a combination mapAsync() and unwrapOr().
function mapOrAsyncForResult<T, E, U>(
input: Result<T, E>,
defaultValue: U,
transformer: AsyncTransformFn<T, U>,
): Promise<U>;