mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-07 09:49:07 +00:00
add syncHistoryWithStore option type
This commit is contained in:
11
react-router-redux/react-router-redux.d.ts
vendored
11
react-router-redux/react-router-redux.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user