forked from crowetic/commerce
Updated useData type
This commit is contained in:
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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user