Type alias AccumulatorCallback<T, U>

AccumulatorCallback<T, U>: ((accumulator, outcome) => U)

Type Parameters

Type declaration

    • (accumulator, outcome): U
    • A rule for aggregating a pool of dice into a single Die.

      Parameters

      • accumulator: U

        accumulator variable, where the aggregated value is stored

      • outcome: T

        next Die outcome

      Returns U

Generated using TypeDoc