Skip to content

Commit

Permalink
Update index.d.ts (#431)
Browse files Browse the repository at this point in the history
reducer should accept all actions  not only LocationChangeAction 。 it will occur type error when combined reducer
  • Loading branch information
yehuozhili committed Aug 29, 2020
1 parent 70a7511 commit afb7ee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ declare module 'connected-react-router' {
> {}

export function connectRouter<S = LocationState>(history: History<S>)
: Reducer<RouterState<S>, LocationChangeAction<S>>
: Reducer<RouterState<S>>

export function routerMiddleware<S = LocationState>(history: History<S>): Middleware;
}

0 comments on commit afb7ee6

Please sign in to comment.