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 1
1
{
2
2
"name" : " redux-first-history" ,
3
- "version" : " 5.0.5 " ,
3
+ "version" : " 5.0.8 " ,
4
4
"description" : " Redux First History - Redux history binding support react-router - @reach/router - wouter" ,
5
5
"main" : " build/es5/index.js" ,
6
6
"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) {
27
27
} ) ;
28
28
}
29
29
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 = ({
163
163
goBack : ( ...args : Parameters < History [ 'goBack' ] > ) => store . dispatch ( goBack ( ...args ) ) ,
164
164
// @ts -ignore
165
165
goForward : ( ...args : Parameters < History [ 'goForward' ] > ) =>
166
+ // @ts -ignore
166
167
store . dispatch ( goForward ( ...args ) ) ,
167
168
// @ts -ignore
168
169
back : ( ...args : Parameters < History [ 'back' ] > ) => store . dispatch ( back ( ...args ) ) ,
You can’t perform that action at this time.
0 commit comments