mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
react-router-redux: update reducer signature to match Redux.Reducer<RouterState> (#13683)
* changed react-router-redux reducer signature to fit Redux.Reducer signature * react-router-redux reducer params are optional
This commit is contained in:
committed by
Sheetal Nandi
parent
7dc075aed5
commit
d4be58a7e8
Vendored
+1
-1
@@ -59,7 +59,7 @@ declare namespace ReactRouterRedux {
|
||||
locationBeforeTransitions: History.Location
|
||||
}
|
||||
|
||||
function routerReducer(state?: RouterState, options?: any): R.Reducer<RouterState>
|
||||
function routerReducer(state?: RouterState, action?: R.Action): RouterState;
|
||||
function syncHistoryWithStore(history: History.History, store: R.Store<any>, options?: SyncHistoryWithStoreOptions): ReactRouterReduxHistory;
|
||||
function routerMiddleware(history: History.History): R.Middleware;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user