From 9a81f3dc342a3734c2e0f75110d0d91f627c9ed4 Mon Sep 17 00:00:00 2001 From: Isman Usoh Date: Mon, 29 Feb 2016 14:29:19 +0700 Subject: [PATCH] Update react-router-redux.d.ts --- react-router-redux/react-router-redux.d.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/react-router-redux/react-router-redux.d.ts b/react-router-redux/react-router-redux.d.ts index f37c25d3d..168161a17 100644 --- a/react-router-redux/react-router-redux.d.ts +++ b/react-router-redux/react-router-redux.d.ts @@ -21,12 +21,17 @@ declare namespace ReactRouterRedux { const routerActions: RouteActions; type LocationDescriptor = H.Location | H.Path; - type PushAction = (nextLocation: LocationDescriptor) => void; - type ReplaceAction = (nextLocation: LocationDescriptor) => void; - type GoAction = (n: number) => void; - type GoForwardAction = () => void; - type GoBackAction = () => void; + type PushAction = (nextLocation: LocationDescriptor) => RouterAction; + type ReplaceAction = (nextLocation: LocationDescriptor) => RouterAction; + type GoAction = (n: number) => RouterAction; + type GoForwardAction = () => RouterAction; + type GoBackAction = () => RouterAction; + type RouterAction = { + type: string + payload?: any + } + interface RouteActions { push: PushAction; replace: ReplaceAction;