Skip to content

Commit d651b48

Browse files
committed
Update response type on as prop
1 parent b2f8b27 commit d651b48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export interface FetchProps<TData = any, TError = Error> {
3333
as?:
3434
| 'auto'
3535
| BodyMethods
36-
| ((response: TData) => void)
37-
| { [type: string]: (res: TData) => Promise<any> };
36+
| ((response: Response) => void)
37+
| { [type: string]: (res: Response) => Promise<any> };
3838
fetchFunction?: (url: string, options: RequestInit) => Promise<any>;
3939
onDataChange?: (newData: TData, data: TData) => any;
4040
onResponseChange?: (response: Response) => any;

0 commit comments

Comments
 (0)