diff --git a/types/index.d.ts b/types/index.d.ts index c865757..30f599f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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 = Pick>; @@ -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' {