From 9186fe5a666f2d7dea14ee163039acb3d0d2a268 Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Fri, 19 Feb 2021 13:22:41 -0500 Subject: [PATCH] Updated useData type --- framework/commerce/utils/use-data.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/framework/commerce/utils/use-data.tsx b/framework/commerce/utils/use-data.tsx index 43db9b534..9224b612c 100644 --- a/framework/commerce/utils/use-data.tsx +++ b/framework/commerce/utils/use-data.tsx @@ -14,11 +14,7 @@ export type ResponseState = responseInterface & { isLoading: boolean } -export type UseData = < - Data = any, - Input extends { [k: string]: unknown } = {}, - FetchInput extends HookFetchInput = {} ->( +export type UseData = ( options: { fetchOptions: HookFetcherOptions fetcher: HookFetcherFn