Type alias Err<E>

Err<E>: {
    isErr: true;
    isOk: false;
    kind: "Err";
    value: E;
}

When something goes wrong we don't throw an error, instead, we return an Err.

Type Parameters

  • E

Type declaration

  • Readonly isErr: true
  • Readonly isOk: false
  • Readonly kind: "Err"
  • Readonly value: E