@allynet/ishod
    Preparing search index...

    Function unwrapErr

    • Get the error value from an Err result.

      Type Parameters

      • E

      Parameters

      • err: Promise<Err<E>>

      Returns Promise<E>

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

      Type Parameters

      • E

      Parameters

      Returns E

      const result = err("error");
      const error: string = unwrapErr(result); // "error"
      const result = Promise.resolve(err("error"));
      const error: Promise<string> = unwrapErr(result); // Promise<"error">