Skip to main content

Function: normalizeReducer()

Returns a non-raw version of reducer.

normalizeReducer(reducer)

normalizeReducer<Key, Value, Acc, This>(reducer): KeyedReducer<Key, Value, Acc>

Returns a non-raw version of reducer.

Type Parameters

Key

Value

Acc

This

Parameters

reducer: Readonly<RawKeyedReducer<Key, Value, Acc, This>>

Returns

KeyedReducer<Key, Value, Acc>

Defined in

reducers.d.ts:410

normalizeReducer(reducer)

normalizeReducer<Value, Acc, Finished, This>(reducer): Reducer<Value, Acc, Finished>

Returns a non-raw version of reducer.

Type Parameters

Value

Acc

Finished

This

Parameters

reducer: Readonly<RawReducerWithFinish<Value, Acc, Finished, This>>

Returns

Reducer<Value, Acc, Finished>

Defined in

reducers.d.ts:413

normalizeReducer(reducer)

normalizeReducer<Value, Acc, This>(reducer): Reducer<Value, Acc, Acc>

Returns a non-raw version of reducer.

Type Parameters

Value

Acc

This

Parameters

reducer: Readonly<RawReducerWithoutFinish<Value, Acc, This>>

Returns

Reducer<Value, Acc, Acc>

Defined in

reducers.d.ts:416

normalizeReducer(reducer)

normalizeReducer<Value, Finished, This>(reducer): OptionalReducer<Value, Finished>

Returns a non-raw version of reducer.

Type Parameters

Value

Finished

This

Parameters

reducer: Readonly<RawOptionalReducerWithFinish<Value, Finished, This>>

Returns

OptionalReducer<Value, Finished>

Defined in

reducers.d.ts:419

normalizeReducer(reducer)

normalizeReducer<Value, This>(reducer): OptionalReducer<Value, Value>

Returns a non-raw version of reducer.

Type Parameters

Value

This

Parameters

reducer: Readonly<RawOptionalReducerWithoutFinish<Value, This>>

Returns

OptionalReducer<Value, Value>

Defined in

reducers.d.ts:422

normalizeReducer(reducer)

normalizeReducer<Value>(reducer): OptionalReducer<Value, Value>

Returns a non-raw version of reducer.

Type Parameters

Value

Parameters

reducer: FunctionReducer<Value>

Returns

OptionalReducer<Value, Value>

Defined in

reducers.d.ts:425

normalizeReducer(reducer)

normalizeReducer<Key, Value, Acc, This>(reducer): AsyncKeyedReducer<Key, Value, Acc>

Returns a non-raw version of reducer.

Type Parameters

Key

Value

Acc

This

Parameters

reducer: Readonly<RawAsyncKeyedReducer<Key, Value, Acc, This>>

Returns

AsyncKeyedReducer<Key, Value, Acc>

Defined in

reducers.d.ts:427

normalizeReducer(reducer)

normalizeReducer<Value, Acc, Finished, This>(reducer): AsyncReducer<Value, Acc, Finished>

Returns a non-raw version of reducer.

Type Parameters

Value

Acc

Finished

This

Parameters

reducer: Readonly<RawAsyncReducerWithFinish<Value, Acc, Finished, This>>

Returns

AsyncReducer<Value, Acc, Finished>

Defined in

reducers.d.ts:430

normalizeReducer(reducer)

normalizeReducer<Value, Acc, This>(reducer): AsyncReducer<Value, Acc, Acc>

Returns a non-raw version of reducer.

Type Parameters

Value

Acc

This

Parameters

reducer: Readonly<RawAsyncReducerWithoutFinish<Value, Acc, This>>

Returns

AsyncReducer<Value, Acc, Acc>

Defined in

reducers.d.ts:433

normalizeReducer(reducer)

normalizeReducer<Value, Finished, This>(reducer): AsyncOptionalReducer<Value, Finished>

Returns a non-raw version of reducer.

Type Parameters

Value

Finished

This

Parameters

reducer: Readonly<RawAsyncOptionalReducerWithFinish<Value, Finished, This>>

Returns

AsyncOptionalReducer<Value, Finished>

Defined in

reducers.d.ts:436

normalizeReducer(reducer)

normalizeReducer<Value, This>(reducer): AsyncOptionalReducer<Value, Value>

Returns a non-raw version of reducer.

Type Parameters

Value

This

Parameters

reducer: Readonly<RawAsyncOptionalReducerWithoutFinish<Value, This>>

Returns

AsyncOptionalReducer<Value, Value>

Defined in

reducers.d.ts:439

normalizeReducer(reducer)

normalizeReducer<Value>(reducer): AsyncOptionalReducer<Value, Value>

Returns a non-raw version of reducer.

Type Parameters

Value

Parameters

reducer: AsyncFunctionReducer<Value>

Returns

AsyncOptionalReducer<Value, Value>

Defined in

reducers.d.ts:442