mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
add syncHistoryWithStore option type
This commit is contained in:
+10
-1
@@ -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