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:
Kevin Thiart
2017-01-12 09:37:38 -08:00
committed by Sheetal Nandi
parent 7dc075aed5
commit d4be58a7e8
+1 -1
View File
@@ -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;
}