From f1cdf02e9c0dca3354f4eebd38edd2ba12075893 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 26 Mar 2021 00:44:51 +0300 Subject: fix: improve typings --- src/hooks/useAPIClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hooks') diff --git a/src/hooks/useAPIClient.ts b/src/hooks/useAPIClient.ts index adb6d3f..b523d1f 100644 --- a/src/hooks/useAPIClient.ts +++ b/src/hooks/useAPIClient.ts @@ -8,7 +8,7 @@ const fetcher = (endpoint: string) => get(endpoint).then(response => response.da const hooks: any = {}; -const registerServiceHooks = (service: string) => { +const registerServiceHooks = (service: string): void => { const useList = (query = '', options = {}): Response => { return useSWR(`/${service}${query}`, fetcher, options); }; -- cgit v1.2.3