AccumulatorResult<P, R>: R & {
    $accumulated: AccumulatedItem<P>[];
    $resolution?: EscalationResolution;
    $trigger: AccumulatorTrigger;
}

What condition() resolves with for an accumulator row on every terminal path except cancel (null). R is the manual resolver payload, present only when $trigger is 'resolve'.

Type Parameters

  • P = Record<string, unknown>
  • R extends Record<string, unknown> = Record<string, unknown>