@axios-use/react
Advanced tools
Comparing version 6.4.0 to 6.4.1
@@ -1,2 +0,2 @@ | ||
## [6.4.0](https://github.com/axios-use/react/compare/v6.3.0...v6.4.0) (2022-03-26) | ||
## [6.4.0](https://github.com/axios-use/react/compare/v6.4.0...v6.4.1) (2023-04-23) | ||
@@ -6,2 +6,11 @@ | ||
* **type:** `onCompleted` response generic error. ([aed68bf](https://github.com/axios-use/react/commit/aed68bfb8b5072a77197c29edd1c5b8773cc5ed8)) | ||
## [6.4.0](https://github.com/axios-use/react/compare/v6.3.0...v6.4.0) (2023-03-26) | ||
### Bug Fixes | ||
* **createRequestError:** value num 0. ([84a3084](https://github.com/axios-use/react/commit/84a3084c49be5175fcbeb72c9c987cc6ba46c3be)) | ||
@@ -8,0 +17,0 @@ |
@@ -29,3 +29,3 @@ import type { AxiosRequestConfig, AxiosResponse, AxiosError, Canceler } from "axios"; | ||
export declare type RequestCallbackFn<T extends Request> = { | ||
onCompleted?: (data: Payload<T>, response: AxiosResponse<BodyData<T>>) => void; | ||
onCompleted?: (data: Payload<T>, response: AxiosResponse<Payload<T>, BodyData<T>>) => void; | ||
onError?: (err?: RequestError<Payload<T>, BodyData<T>>) => void; | ||
@@ -32,0 +32,0 @@ }; |
@@ -29,3 +29,3 @@ import type { AxiosRequestConfig, AxiosResponse, AxiosError, Canceler } from "axios"; | ||
export declare type RequestCallbackFn<T extends Request> = { | ||
onCompleted?: (data: Payload<T>, response: AxiosResponse<BodyData<T>>) => void; | ||
onCompleted?: (data: Payload<T>, response: AxiosResponse<Payload<T>, BodyData<T>>) => void; | ||
onError?: (err?: RequestError<Payload<T>, BodyData<T>>) => void; | ||
@@ -32,0 +32,0 @@ }; |
{ | ||
"name": "@axios-use/react", | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "A React hook plugin for Axios. Lightweight, cancelable and less change", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
90250