mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
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
|
||||
}
|
||||
|
||||
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user