add syncHistoryWithStore option type

This commit is contained in:
Isman Usoh
2016-02-29 12:42:07 +07:00
parent 5799bec969
commit 9b42d75b98

View File

@@ -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;
}