redux-first-history
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -21,4 +21,4 @@ import type { History } from 'history'; | ||
routerMiddleware: Middleware; | ||
routerReducer: Reducer; | ||
routerReducer: Reducer<RouterState>; | ||
} | ||
export declare const createReduxHistoryContext: ({ history, routerReducerKey, reduxTravelling, showHistoryAction, selectRouterState, savePreviousLocations, batch, reachGlobalHistory, }: IHistoryContextOptions) => IHistoryContext; |
@@ -13,2 +13,2 @@ import { Action, Location } from 'history'; | ||
savePreviousLocations?: number | undefined; | ||
}) => Reducer; | ||
}) => Reducer<RouterState>; |
@@ -21,4 +21,4 @@ import type { History } from 'history'; | ||
routerMiddleware: Middleware; | ||
routerReducer: Reducer; | ||
routerReducer: Reducer<RouterState>; | ||
} | ||
export declare const createReduxHistoryContext: ({ history, routerReducerKey, reduxTravelling, showHistoryAction, selectRouterState, savePreviousLocations, batch, reachGlobalHistory, }: IHistoryContextOptions) => IHistoryContext; |
@@ -13,2 +13,2 @@ import { Action, Location } from 'history'; | ||
savePreviousLocations?: number | undefined; | ||
}) => Reducer; | ||
}) => Reducer<RouterState>; |
{ | ||
"name": "redux-first-history", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Redux First History - Redux history binding support react-router - @reach/router - wouter", | ||
@@ -5,0 +5,0 @@ "main": "build/es5/index.js", |
@@ -32,3 +32,3 @@ import type { History, Location } from 'history'; | ||
routerMiddleware: Middleware; | ||
routerReducer: Reducer; | ||
routerReducer: Reducer<RouterState>; | ||
} | ||
@@ -35,0 +35,0 @@ |
@@ -39,3 +39,3 @@ /* eslint-disable consistent-return,indent */ | ||
//@ts-ignore //support history 5.x | ||
history.back && history.back(...(args as Parameters<History['goBack']>)); | ||
history.back && history.back(...(args as Parameters<History['back']>)); | ||
break; | ||
@@ -47,3 +47,3 @@ case 'forward': | ||
//@ts-ignore //support history 5.x | ||
history.forward && history.forward(...(args as Parameters<History['goForward']>)); | ||
history.forward && history.forward(...(args as Parameters<History['forward']>)); | ||
break; | ||
@@ -50,0 +50,0 @@ } |
@@ -11,3 +11,3 @@ import { Action, Location } from 'history'; | ||
export const createRouterReducer = ({ savePreviousLocations = 0 }): Reducer => { | ||
export const createRouterReducer = ({ savePreviousLocations = 0 }): Reducer<RouterState> => { | ||
const initialState: RouterState = { | ||
@@ -14,0 +14,0 @@ location: null, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
83528