diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-26 00:44:51 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-26 00:44:51 +0300 |
commit | f1cdf02e9c0dca3354f4eebd38edd2ba12075893 (patch) | |
tree | c164c722d879869024a1dcd07fec225eb5f5bf47 /src/hooks | |
parent | 062f10a25d43b875d187cf582b2ecf96d075ec26 (diff) | |
download | commercel-ui-f1cdf02e9c0dca3354f4eebd38edd2ba12075893.tar.gz |
fix: improve typings
Diffstat (limited to 'src/hooks')
-rw-r--r-- | src/hooks/useAPIClient.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 = <Item = any>(service: string) => { +const registerServiceHooks = <Item = any>(service: string): void => { const useList = (query = '', options = {}): Response<Item[]> => { return useSWR(`/${service}${query}`, fetcher, options); }; |