StateType<R extends Reducer<any, any>> Type alias
A TypeScript type alias that represents the return type of a Redux Reducer.
If you have created a type-safe reducer function using combineReducers
, you can use this to infer your state type instead of having to define it manually.
StateType = DeepReadonly<ReturnType<R>>
Defined in
Last Updated: 20 June, 2023