Type Alias Outcome<S, F>

Outcome<S, F>: {
    data: S;
    type: "success";
} | {
    data: F;
    type: "failure";
}

Type Parameters

  • S
  • F