Closed jiqimaogou closed 3 years ago
Per the Redux docs (https://redux.js.org/recipes/usage-with-typescript) you can get the type of State out of combineReducers
like this:
const rootReducer = combineReducers({
system: systemReducer,
chat: chatReducer
})
export type RootState = ReturnType<typeof rootReducer>
example just have one reducer with one state.
if have multiple reducers, the IState and IAction is like this?