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