1
0
mirror of https://github.com/vercel/commerce.git synced 2025-05-24 02:17:01 +00:00

Updated useData type

This commit is contained in:
Luis Alvarez 2021-02-19 13:22:41 -05:00
parent 0816bc967d
commit 9186fe5a66

@ -14,11 +14,7 @@ export type ResponseState<Result> = responseInterface<Result, CommerceError> & {
isLoading: boolean isLoading: boolean
} }
export type UseData = < export type UseData = <Data = any, FetchInput extends HookFetchInput = {}>(
Data = any,
Input extends { [k: string]: unknown } = {},
FetchInput extends HookFetchInput = {}
>(
options: { options: {
fetchOptions: HookFetcherOptions fetchOptions: HookFetcherOptions
fetcher: HookFetcherFn<Data, FetchInput> fetcher: HookFetcherFn<Data, FetchInput>