From 15697ab8abae3fec197b5750e48342a26daa9557 Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Mon, 31 Dec 2018 09:16:50 +0100 Subject: [PATCH] Set better return type of route handlers ActionCreator Feature #14653 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- src/routes/route-change-handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => { -- 2.30.2