mirror of https://github.com/sundowndev/http.git
docs: remove onResponseError, onRequestError
parent
e01118631b
commit
a8a288cee0
|
@ -7,8 +7,6 @@ HTTP plugin provides helpers to register http interceptors easier and faster.
|
||||||
- `onRequest(config)`
|
- `onRequest(config)`
|
||||||
- `onResponse(response)`
|
- `onResponse(response)`
|
||||||
- `onError(err)`
|
- `onError(err)`
|
||||||
- `onRequestError(err)`
|
|
||||||
- `onResponseError(err)`
|
|
||||||
|
|
||||||
These functions don't have to return anything by default.
|
These functions don't have to return anything by default.
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,6 @@ interface NuxtHTTPInstance {
|
||||||
onRequest(callback: (config: any) => void): void
|
onRequest(callback: (config: any) => void): void
|
||||||
onResponse<T = any>(callback: (response: any) => void): void
|
onResponse<T = any>(callback: (response: any) => void): void
|
||||||
onError(callback: (error: any) => void): void
|
onError(callback: (error: any) => void): void
|
||||||
onRequestError(callback: (error: any) => void): void
|
|
||||||
onResponseError(callback: (error: any) => void): void
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module '@nuxt/vue-app' {
|
declare module '@nuxt/vue-app' {
|
||||||
|
|
Loading…
Reference in New Issue