Type alias Ok<A>

Ok<A>: {
    isErr: false;
    isOk: true;
    kind: "Ok";
    value: A;
}

Represents a successful computation

Type Parameters

  • A

Type declaration

  • Readonly isErr: false
  • Readonly isOk: true
  • Readonly kind: "Ok"
  • Readonly value: A