fix(types): update types for `HTTPError` to `ky.HTTPError` (#91)

sindresorhus/ky#241
master
Wildan Maulana Syahidillah 2020-03-31 17:04:02 +07:00 committed by GitHub
parent e740a5e93a
commit 3a9100f2fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
types/index.d.ts vendored
View File

@ -1,5 +1,5 @@
import Vue from 'vue'
import { ResponsePromise, Options, BeforeRequestHook, BeforeRetryHook, AfterResponseHook, HTTPError } from 'ky'
import ky, { ResponsePromise, Options, BeforeRequestHook, BeforeRetryHook, AfterResponseHook } from 'ky'
import './vuex'
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
@ -145,7 +145,7 @@ interface NuxtHTTPInstance {
*
* This hook enables you to globally handle request errors.
*/
onError(hook: (error: HTTPError) => void): void
onError(hook: (error: ky.HTTPError) => void): void
}
declare module '@nuxt/vue-app' {