Skip to main content

Function: normalizeReducer()

Returns a non-raw version of reducer.

Since

v2.0.0

Call Signature

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

Type Parameters

Key

Value

Acc

This

Parameters

reducer

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

Returns

KeyedReducer<Key, Value, Acc>

Defined in

reducers.d.ts:575

Call Signature

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

Type Parameters

Value

Acc

Finished

This

Parameters

reducer

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

Returns

Reducer<Value, Acc, Finished>

Defined in

reducers.d.ts:578

Call Signature

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

Type Parameters

Value

Acc

This

Parameters

reducer

Readonly<RawReducerWithoutFinish<Value, Acc, This>>

Returns

Reducer<Value, Acc, Acc>

Defined in

reducers.d.ts:581

Call Signature

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

Type Parameters

Value

Finished

This

Parameters

reducer

Readonly<RawOptionalReducerWithFinish<Value, Finished, This>>

Returns

OptionalReducer<Value, Finished>

Defined in

reducers.d.ts:584

Call Signature

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

Type Parameters

Value

This

Parameters

reducer

Readonly<RawOptionalReducerWithoutFinish<Value, This>>

Returns

OptionalReducer<Value, Value>

Defined in

reducers.d.ts:587

Call Signature

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

Type Parameters

Value

Parameters

reducer

FunctionReducer<Value>

Returns

OptionalReducer<Value, Value>

Defined in

reducers.d.ts:590

Call Signature

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

Type Parameters

Key

Value

Acc

This

Parameters

reducer

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

Returns

AsyncKeyedReducer<Key, Value, Acc>

Defined in

reducers.d.ts:592

Call Signature

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

Type Parameters

Value

Acc

Finished

This

Parameters

reducer

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

Returns

AsyncReducer<Value, Acc, Finished>

Defined in

reducers.d.ts:595

Call Signature

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

Type Parameters

Value

Acc

This

Parameters

reducer

Readonly<RawAsyncReducerWithoutFinish<Value, Acc, This>>

Returns

AsyncReducer<Value, Acc, Acc>

Defined in

reducers.d.ts:598

Call Signature

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

Type Parameters

Value

Finished

This

Parameters

reducer

Readonly<RawAsyncOptionalReducerWithFinish<Value, Finished, This>>

Returns

AsyncOptionalReducer<Value, Finished>

Defined in

reducers.d.ts:601

Call Signature

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

Type Parameters

Value

This

Parameters

reducer

Readonly<RawAsyncOptionalReducerWithoutFinish<Value, This>>

Returns

AsyncOptionalReducer<Value, Value>

Defined in

reducers.d.ts:604

Call Signature

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

Type Parameters

Value

Parameters

reducer

AsyncFunctionReducer<Value>

Returns

AsyncOptionalReducer<Value, Value>

Defined in

reducers.d.ts:607