changed push command to fit react-router's push (#10041)

This commit is contained in:
mbeauchamp7
2016-07-24 00:09:02 -07:00
committed by Mohamed Hegazy
parent 301ae9717e
commit 3f0988d6a0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ declare namespace ReactRouterRedux {
const goForward: GoBackAction;
const routeActions: RouteActions;
type LocationDescriptor = H.Location | H.Path;
type LocationDescriptor = H.LocationDescriptor;
type PushAction = (nextLocation: LocationDescriptor) => void;
type ReplaceAction = (nextLocation: LocationDescriptor) => void;
type GoAction = (n: number) => void;
+1 -1
View File
@@ -20,7 +20,7 @@ declare namespace ReactRouterRedux {
const goForward: GoBackAction;
const routerActions: RouteActions;
type LocationDescriptor = H.Location | H.Path;
type LocationDescriptor = H.LocationDescriptor;
type PushAction = (nextLocation: LocationDescriptor) => RouterAction;
type ReplaceAction = (nextLocation: LocationDescriptor) => RouterAction;
type GoAction = (n: number) => RouterAction;