StateType<R extends Reducer<any, any>> Type
StateType = DeepReadonly<ReturnType<R>>
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.
Defined in
Last Updated: 20 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.