Get the error value from an Err result.
Err
const result = err("error");const error: string = unwrapErr(result); // "error" Copy
const result = err("error");const error: string = unwrapErr(result); // "error"
const result = Promise.resolve(err("error"));const error: Promise<string> = unwrapErr(result); // Promise<"error"> Copy
const result = Promise.resolve(err("error"));const error: Promise<string> = unwrapErr(result); // Promise<"error">
Get the error value from an
Errresult.