Skip to main content

Function: mapAsyncReducer()

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

mapAsyncReducer(fn, asyncReducer)

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

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

Type Parameters

Value

Acc

From

To

This

Parameters

fn

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

Returns

AsyncReducer<Value, Acc, To>

Defined in

reducers.d.ts:351

mapAsyncReducer(fn)

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

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

Type Parameters

From

To

Parameters

fn

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:355

mapAsyncReducer(fn, asyncReducer)

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

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

Type Parameters

Value

From

To

This

Parameters

fn

asyncReducer: Readonly<RawAsyncReducerWithoutFinish<Value, From, This>>

Returns

AsyncReducer<Value, To, To>

Defined in

reducers.d.ts:361

mapAsyncReducer(fn)

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

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

Type Parameters

From

To

Parameters

fn

Returns

Function

Type Parameters

Value

This

Parameters

asyncReducer: Readonly<RawAsyncReducerWithoutFinish<Value, From, This>>

Returns

AsyncReducer<Value, To, To>

Defined in

reducers.d.ts:365

mapAsyncReducer(fn, asyncReducer)

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

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

Type Parameters

Value

From

To

This

Parameters

fn

asyncReducer: Readonly<RawAsyncOptionalReducerWithFinish<Value, From, This>>

Returns

AsyncOptionalReducer<Value, To>

Defined in

reducers.d.ts:371

mapAsyncReducer(fn)

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

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

Type Parameters

From

To

Parameters

fn

Returns

Function

Type Parameters

Value

This

Parameters

asyncReducer: Readonly<RawAsyncOptionalReducerWithFinish<Value, From, This>>

Returns

AsyncOptionalReducer<Value, To>

Defined in

reducers.d.ts:377

mapAsyncReducer(fn, asyncReducer)

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

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

Type Parameters

From

To

This

Parameters

fn

asyncReducer: Readonly<RawAsyncOptionalReducerWithoutFinish<From, This>>

Returns

AsyncOptionalReducer<To, To>

Defined in

reducers.d.ts:385

mapAsyncReducer(fn)

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

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

Type Parameters

From

To

Parameters

fn

Returns

Function

Type Parameters

This

Parameters

asyncReducer: Readonly<RawAsyncOptionalReducerWithoutFinish<From, This>>

Returns

AsyncOptionalReducer<To, To>

Defined in

reducers.d.ts:389

mapAsyncReducer(fn, asyncReducer)

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

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

Type Parameters

From

To

Parameters

fn

asyncReducer: AsyncFunctionReducer<From>

Returns

AsyncOptionalReducer<To, To>

Defined in

reducers.d.ts:395

mapAsyncReducer(fn)

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

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

Type Parameters

From

To

Parameters

fn

Returns

Function

Parameters

asyncReducer: AsyncFunctionReducer<From>

Returns

AsyncOptionalReducer<To, To>

Defined in

reducers.d.ts:399