We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
as
1 parent b2f8b27 commit d651b48Copy full SHA for d651b48
index.d.ts
@@ -33,8 +33,8 @@ export interface FetchProps<TData = any, TError = Error> {
33
as?:
34
| 'auto'
35
| BodyMethods
36
- | ((response: TData) => void)
37
- | { [type: string]: (res: TData) => Promise<any> };
+ | ((response: Response) => void)
+ | { [type: string]: (res: Response) => Promise<any> };
38
fetchFunction?: (url: string, options: RequestInit) => Promise<any>;
39
onDataChange?: (newData: TData, data: TData) => any;
40
onResponseChange?: (response: Response) => any;
0 commit comments