Appearance
Type Alias: OfferDecision
ts
type OfferDecision =
| {
action: "accept";
rollbackFirst: boolean;
}
| {
action: "ignore";
reason: string;
};Union Members
Type Literal
ts
{
action: "accept";
rollbackFirst: boolean;
}Take it: no collision, or we are polite and yield.
Type Literal
ts
{
action: "ignore";
reason: string;
}Drop it on the floor. The far side is polite and will take ours.