Skip to content

Commit 9e3a688

Browse files
committed
fix #60
1 parent 6ace38e commit 9e3a688

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/actions.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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');

src/create.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)),

0 commit comments

Comments
 (0)