From d4be58a7e8ed47dad29bc2a2af345f54c6b33099 Mon Sep 17 00:00:00 2001 From: Kevin Thiart Date: Thu, 12 Jan 2017 19:37:38 +0200 Subject: [PATCH] react-router-redux: update reducer signature to match Redux.Reducer (#13683) * changed react-router-redux reducer signature to fit Redux.Reducer signature * react-router-redux reducer params are optional --- react-router-redux/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-router-redux/index.d.ts b/react-router-redux/index.d.ts index b37af67b2f..16438f9452 100644 --- a/react-router-redux/index.d.ts +++ b/react-router-redux/index.d.ts @@ -59,7 +59,7 @@ declare namespace ReactRouterRedux { locationBeforeTransitions: History.Location } - function routerReducer(state?: RouterState, options?: any): R.Reducer + function routerReducer(state?: RouterState, action?: R.Action): RouterState; function syncHistoryWithStore(history: History.History, store: R.Store, options?: SyncHistoryWithStoreOptions): ReactRouterReduxHistory; function routerMiddleware(history: History.History): R.Middleware; }