Skip to main content

Type Alias: AsyncKeyedReducer<Key, Value, Acc>

AsyncKeyedReducer<Key, Value, Acc>: RawAsyncKeyedReducer<Key, Value, Acc>

An async keyed reducer that reduces by creating an initial accumulator using AsyncKeyedReducer.create and then adding key-value pairs to the accumulator values using AsyncKeyedReducer.add. The async keyed reducer is optionally able to combine pairs of accumulators using AsyncKeyedReducer.combine. The accumulator can be queried for values by key using AsyncKeyedReducer.get.

Type Parameters

Key = unknown

Value = unknown

Acc = [Key, Value]

Defined in

reducers.d.ts:269