4
0
forked from crowetic/commerce

Updated useData type

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

View File

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