StateFromReducers<R>
typeThe 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
| Name | Type | Description |
|---|---|---|
R | – |