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: 14 November, 2024