File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " redux-first-history" ,
3- "version" : " 5.0.5 " ,
3+ "version" : " 5.0.8 " ,
44 "description" : " Redux First History - Redux history binding support react-router - @reach/router - wouter" ,
55 "main" : " build/es5/index.js" ,
66 "module" : " build/es6/index.js" ,
Original file line number Diff line number Diff line change @@ -27,10 +27,11 @@ function updateLocation<T extends HistoryMethods>(method: T) {
2727 } ) ;
2828}
2929
30- export const push = updateLocation ( 'push' ) ;
31- export const replace = updateLocation ( 'replace' ) ;
32- export const go = updateLocation ( 'go' ) ;
33- export const goBack = updateLocation ( 'goBack' ) ;
34- export const goForward = updateLocation ( 'goForward' ) ;
35- export const back = updateLocation ( 'back' ) ;
36- export const forward = updateLocation ( 'forward' ) ;
30+ export const push : ( ...args : Parameters < History [ 'push' ] > ) => ReduxAction = updateLocation ( 'push' ) ;
31+ export const replace : ( ...args : Parameters < History [ 'replace' ] > ) => ReduxAction =
32+ updateLocation ( 'replace' ) ;
33+ export const go : ( ...args : Parameters < History [ 'go' ] > ) => ReduxAction = updateLocation ( 'go' ) ;
34+ export const goBack : ( ) => ReduxAction = updateLocation ( 'goBack' ) ;
35+ export const goForward : ( ) => ReduxAction = updateLocation ( 'goForward' ) ;
36+ export const back : ( ) => ReduxAction = updateLocation ( 'back' ) ;
37+ export const forward : ( ) => ReduxAction = updateLocation ( 'forward' ) ;
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ export const createReduxHistoryContext = ({
163163 goBack : ( ...args : Parameters < History [ 'goBack' ] > ) => store . dispatch ( goBack ( ...args ) ) ,
164164 // @ts -ignore
165165 goForward : ( ...args : Parameters < History [ 'goForward' ] > ) =>
166+ // @ts -ignore
166167 store . dispatch ( goForward ( ...args ) ) ,
167168 // @ts -ignore
168169 back : ( ...args : Parameters < History [ 'back' ] > ) => store . dispatch ( back ( ...args ) ) ,
You can’t perform that action at this time.
0 commit comments