Create an instance of ResultAsync containing an Err variant of Result
ResultAsync
Equivalent to new ResultAsync(Promise.resolve(new Err(err)))
new ResultAsync(Promise.resolve(new Err(err)))
The type of the value contained in the Result for the success case
Result
The type of the error contained in the Result for the failure case
The value to wrap in a Result.Err.
Result.Err
Create an instance of
ResultAsync
containing an Err variant of ResultEquivalent to
new ResultAsync(Promise.resolve(new Err(err)))