From 9b42d75b988eb4b8a0db3387e2cefee711732cfe Mon Sep 17 00:00:00 2001 From: Isman Usoh Date: Mon, 29 Feb 2016 12:42:07 +0700 Subject: [PATCH] add syncHistoryWithStore option type --- react-router-redux/react-router-redux.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/react-router-redux/react-router-redux.d.ts b/react-router-redux/react-router-redux.d.ts index 42d34baf6..0d1288fe1 100644 --- a/react-router-redux/react-router-redux.d.ts +++ b/react-router-redux/react-router-redux.d.ts @@ -37,9 +37,18 @@ declare namespace ReactRouterRedux { interface HistoryMiddleware extends H.History { unsubscribe(): void; } + + interface DefaultSelectLocationState extends Function { + (state: any): any; + } + + interface SyncHistoryWithStoreOptions { + selectLocationState?: DefaultSelectLocationState; + adjustUrlOnReplay?: boolean; + } function routerReducer(state?: any, options?: any): R.Reducer; - function syncHistoryWithStore(history: H.History, store: R.Store, options?: any): HistoryMiddleware; + function syncHistoryWithStore(history: H.History, store: R.Store, options?: SyncHistoryWithStoreOptions): HistoryMiddleware; function routerMiddleware(history: H.History): Function; }