Skip to main content

Type Alias: RawAsyncReducerWithFinish<Value, Acc, Finished, This>

RawAsyncReducerWithFinish<Value, Acc, Finished, This> = RawAsyncReducerWithoutFinish<Value, Acc, This> & object

Defined in: reducers.d.ts:368

An async reducer that reduces by creating an initial accumulator using RawAsyncReducerWithoutFinish.create, then adding values to the accumulator values using RawAsyncReducerWithoutFinish.add, and then transforming the final accumulator using RawAsyncReducerWithFinish.finish. The async reducer is optionally able to combine pairs of accumulators using RawAsyncReducerWithoutFinish.combine.

Type declaration​

finish()​

finish: (this, acc) => MaybePromiseLike<Finished>

Parameters​

this​

This

acc​

Acc

Returns​

MaybePromiseLike<Finished>

Type Parameters​

Value​

Value = unknown

Acc​

Acc = Value

Finished​

Finished = Acc

This​

This = unknown

Since​

v2.0.0