Essentially, I have successfully rendered a return type for my combined reducers using the following code:
const rootReducer = combineReducers({
notes: notesReducer,
categories: categoriesReducer,
flyout: flyoutReducer
// more reducers
});
export type AppState = ReturnType<typeof rootReducer>;
However, when attempting to accept a parameter in the function, I am struggling to correctly return the types. See example below:
const rootReducer = history =>
combineReducers({
router: connectRouter(history),
page: pageReducer,
....
....
export type AppState = ReturnType<typeof rootReducer>;
How can I properly call the function to get the same returned types?