La referencia de la API está disponible solo en inglés por ahora.

StateFromReducers<R>

type
types.ts:1769

The state a reducers map produces: each slice name mapped to its spec's state type.

This is the state createStore infers when it is given only reducer. Use it to name that state without writing it out a second time.

Definition

type
type StateFromReducers<R> = { [K in keyof R]: R[K] extends ReducerSpec<S, any> ? S : never }

{ [K in keyof R]: R[K] extends ReducerSpec<S, any> ? S : never }

Type parameters

NameTypeDescription
R–