Type Alias: RawReducerWithFinish<Value, Acc, Finished, This>
RawReducerWithFinish<
Value
,Acc
,Finished
,This
>:RawReducerWithoutFinish
<Value
,Acc
,This
> &object
A reducer that reduces by creating an initial accumulator using RawReducerWithFinish.create, then adding values to the accumulator values using RawReducerWithFinish.add, and then tranforming the final accumulator using RawReducerWithFinish.finish.
Type declaration
finish()
finish: (
this
,acc
) =>Finished
Parameters
• this: This
• acc: Acc
Returns
Finished
Type Parameters
• Value = unknown
• Acc = Value
• Finished = Acc
• This = unknown