Skip to main content

Type Alias: RawAsyncKeyedReducer<Key, Value, Acc, This>

RawAsyncKeyedReducer<Key, Value, Acc, This>: RawAsyncReducerWithoutFinish<readonly [Key, Value], Acc, This> & object

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

Type declaration

get()

get: (this, acc, key) => MaybePromiseLike<Value | typeof NO_ENTRY>

Parameters

this

This

acc

Acc

key

Key

Returns

MaybePromiseLike<Value | typeof NO_ENTRY>

Type Parameters

Key = unknown

Value = unknown

Acc = [Key, Value]

This = unknown

Since

v2.0.0

Defined in

reducers.d.ts:406