Skip to content

Commit 3c7e56f

Browse files
committed
fix(type): onCompleted response generic error
1 parent cddbf0e commit 3c7e56f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export type RequestCallbackFn<T extends Request> = {
5050
*/
5151
onCompleted?: (
5252
data: Payload<T>,
53-
response: AxiosResponse<BodyData<T>>,
53+
response: AxiosResponse<Payload<T>, BodyData<T>>,
5454
) => void;
5555
/**
5656
* A callback function that's called when the request encounters one or more errors.

0 commit comments

Comments
 (0)