Skip to content

Commit

Permalink
fix(type): onCompleted response generic error
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcch committed Apr 21, 2023
1 parent 7a8fea4 commit aed68bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface RequestError<
export type RequestCallbackFn<T extends Request> = {
onCompleted?: (
data: Payload<T>,
response: AxiosResponse<BodyData<T>>,
response: AxiosResponse<Payload<T>, BodyData<T>>,
) => void;
onError?: (err?: RequestError<Payload<T>, BodyData<T>>) => void;
};
Expand Down

0 comments on commit aed68bf

Please sign in to comment.