Skip to content

computeApplied

function computeApplied(
current,
amount,
options?
): number;

Defined in: src/counters/contract.ts:63

The pure decision every driver implements atomically: given the current value, how much of amount applies under options. Exported so drivers (and their tests) share one definition.

Parameter Type
current number
amount number
options? CounterAddOptions

number