mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
changed push command to fit react-router's push (#10041)
This commit is contained in:
committed by
Mohamed Hegazy
parent
301ae9717e
commit
3f0988d6a0
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user