Connected React Router exports types for RouterState
which is great! However I don't see typings for match
. Would assume those could also be imported and added to reducer such as RouterState
is used below and in reducer:
const rootReducer = (history: History) => combineReducers({
count: counterReducer,
router: connectRouter(history)
})
export interface State {
count: number
router: RouterState
}
Without which you can't really use this.props.match
in connected components and such to match params, etc. Is there a workaround here for those using TypeScript who also need to add to reducer? Or am I missing a key part here? Thanks so much!