From: Michal Klobukowski Date: Mon, 31 Dec 2018 08:16:50 +0000 (+0100) Subject: Set better return type of route handlers ActionCreator X-Git-Tag: 1.4.0~72^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/15697ab8abae3fec197b5750e48342a26daa9557 Set better return type of route handlers ActionCreator Feature #14653 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- diff --git a/src/routes/route-change-handlers.ts b/src/routes/route-change-handlers.ts index ee48e6da..72b26539 100644 --- a/src/routes/route-change-handlers.ts +++ b/src/routes/route-change-handlers.ts @@ -31,7 +31,7 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { }; type MatchRoute = (route: string) => match | null; -type ActionCreator = (params: Params) => void; +type ActionCreator = (params: Params) => ThunkAction; const handle = (matchRoute: MatchRoute, actionCreator: ActionCreator) => (dispatch: Dispatch, route: string) => {