Skip to main content

Function: mapAsyncReducer()

Returns an AsyncReducer equivalent to reducer except its final value is transformed using fn.

Since

v2.0.0

Call Signature

mapAsyncReducer<Value, Acc, From, To, This>(fn, asyncReducer): AsyncReducer<Value, Acc, To>

Type Parameters

Value

Acc

From

To

This

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

Readonly<RawAsyncReducerWithFinish<Value, Acc, From, This>>

Returns

AsyncReducer<Value, Acc, To>

Defined in

reducers.d.ts:515

Call Signature

mapAsyncReducer<From, To>(fn): <Value, Acc, This>(asyncReducer) => AsyncReducer<Value, Acc, To>

Type Parameters

From

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

Function

Type Parameters

Value

Acc

This

Parameters

asyncReducer

Readonly<RawAsyncReducerWithFinish<Value, Acc, From, This>>

Returns

AsyncReducer<Value, Acc, To>

Defined in

reducers.d.ts:519

Call Signature

mapAsyncReducer<Value, From, To, This>(fn, asyncReducer): AsyncReducer<Value, To, To>

Type Parameters

Value

From

To

This

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

Readonly<RawAsyncReducerWithoutFinish<Value, From, This>>

Returns

AsyncReducer<Value, To, To>

Defined in

reducers.d.ts:525

Call Signature

mapAsyncReducer<From, To>(fn): <Value, This>(asyncReducer) => AsyncReducer<Value, To, To>

Type Parameters

From

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

Function

Type Parameters

Value

This

Parameters

asyncReducer

Readonly<RawAsyncReducerWithoutFinish<Value, From, This>>

Returns

AsyncReducer<Value, To, To>

Defined in

reducers.d.ts:529

Call Signature

mapAsyncReducer<Value, From, To, This>(fn, asyncReducer): AsyncOptionalReducer<Value, To>

Type Parameters

Value

From

To

This

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

Readonly<RawAsyncOptionalReducerWithFinish<Value, From, This>>

Returns

AsyncOptionalReducer<Value, To>

Defined in

reducers.d.ts:535

Call Signature

mapAsyncReducer<From, To>(fn): <Value, This>(asyncReducer) => AsyncOptionalReducer<Value, To>

Type Parameters

From

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

Function

Type Parameters

Value

This

Parameters

asyncReducer

Readonly<RawAsyncOptionalReducerWithFinish<Value, From, This>>

Returns

AsyncOptionalReducer<Value, To>

Defined in

reducers.d.ts:541

Call Signature

mapAsyncReducer<From, To, This>(fn, asyncReducer): AsyncOptionalReducer<To, To>

Type Parameters

From

To

This

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

Readonly<RawAsyncOptionalReducerWithoutFinish<From, This>>

Returns

AsyncOptionalReducer<To, To>

Defined in

reducers.d.ts:549

Call Signature

mapAsyncReducer<From, To>(fn): <This>(asyncReducer) => AsyncOptionalReducer<To, To>

Type Parameters

From

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

Function

Type Parameters

This

Parameters

asyncReducer

Readonly<RawAsyncOptionalReducerWithoutFinish<From, This>>

Returns

AsyncOptionalReducer<To, To>

Defined in

reducers.d.ts:553

Call Signature

mapAsyncReducer<From, To>(fn, asyncReducer): AsyncOptionalReducer<To, To>

Type Parameters

From

To

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

AsyncFunctionReducer<From>

Returns

AsyncOptionalReducer<To, To>

Defined in

reducers.d.ts:559

Call Signature

mapAsyncReducer<From, To>(fn): (asyncReducer) => AsyncOptionalReducer<To, To>

Type Parameters

From

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

Function

Parameters

asyncReducer

AsyncFunctionReducer<From>

Returns

AsyncOptionalReducer<To, To>

Defined in

reducers.d.ts:563