Skip to main content

Variable: mapAsyncReducer()

const mapAsyncReducer: {<Value, Acc, From, To, This>(fn, asyncReducer): AsyncReducer<Value, Acc, To>; <From, To>(fn): <Value, Acc, This>(asyncReducer) => AsyncReducer<Value, Acc, To>; <Value, From, To, This>(fn, asyncReducer): AsyncReducer<Value, To>; <From, To>(fn): <Value, This>(asyncReducer) => AsyncReducer<Value, To>; <Value, From, To, This>(fn, asyncReducer): AsyncOptionalReducer<Value, To>; <From, To>(fn): <Value, This>(asyncReducer) => AsyncOptionalReducer<Value, To>; <From, To, This>(fn, asyncReducer): AsyncOptionalReducer<To>; <From, To>(fn): <This>(asyncReducer) => AsyncOptionalReducer<To>; <From, To>(fn, asyncReducer): AsyncOptionalReducer<To>; <From, To>(fn): (asyncReducer) => AsyncOptionalReducer<To>; }

Defined in: reducers.d.ts:514

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

Call Signature

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

Type Parameters

Value

Value

Acc

Acc

From

From

To

To

This

This

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

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

Returns

AsyncReducer<Value, Acc, To>

Call Signature

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

Type Parameters

From

From

To

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

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

Type Parameters

Value

Value

Acc

Acc

This

This

Parameters

asyncReducer

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

Returns

AsyncReducer<Value, Acc, To>

Call Signature

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

Type Parameters

Value

Value

From

From

To

To

This

This

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

Readonly<RawAsyncReducerWithoutFinish<Value, From, This>>

Returns

AsyncReducer<Value, To>

Call Signature

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

Type Parameters

From

From

To

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

<Value, This>(asyncReducer): AsyncReducer<Value, To>

Type Parameters

Value

Value

This

This

Parameters

asyncReducer

Readonly<RawAsyncReducerWithoutFinish<Value, From, This>>

Returns

AsyncReducer<Value, To>

Call Signature

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

Type Parameters

Value

Value

From

From

To

To

This

This

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

Readonly<RawAsyncOptionalReducerWithFinish<Value, From, This>>

Returns

AsyncOptionalReducer<Value, To>

Call Signature

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

Type Parameters

From

From

To

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

<Value, This>(asyncReducer): AsyncOptionalReducer<Value, To>

Type Parameters

Value

Value

This

This

Parameters

asyncReducer

Readonly<RawAsyncOptionalReducerWithFinish<Value, From, This>>

Returns

AsyncOptionalReducer<Value, To>

Call Signature

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

Type Parameters

From

From

To

To

This

This

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

Readonly<RawAsyncOptionalReducerWithoutFinish<From, This>>

Returns

AsyncOptionalReducer<To>

Call Signature

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

Type Parameters

From

From

To

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

<This>(asyncReducer): AsyncOptionalReducer<To>

Type Parameters

This

This

Parameters

asyncReducer

Readonly<RawAsyncOptionalReducerWithoutFinish<From, This>>

Returns

AsyncOptionalReducer<To>

Call Signature

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

Type Parameters

From

From

To

To

Parameters

fn

(value) => MaybePromiseLike<To>

asyncReducer

AsyncFunctionReducer<From>

Returns

AsyncOptionalReducer<To>

Call Signature

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

Type Parameters

From

From

To

To

Parameters

fn

(value) => MaybePromiseLike<To>

Returns

(asyncReducer): AsyncOptionalReducer<To>

Parameters

asyncReducer

AsyncFunctionReducer<From>

Returns

AsyncOptionalReducer<To>

Since

v2.0.0