Closed apgapg closed 1 year ago
@apgapg Import it like import type { NuxtAxiosInstance } from '@nuxtjs/axios'
FYI, You may want to check this out https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html
duplicated #547
Thanks.
Currently If I need a custom axios instance, I need to provide typings like this:
Here to provide type of
$axiosLogin
I need to useNuxtAxiosInstance
. But in typings we see the interface is not exported.https://github.com/nuxt-community/axios-module/blob/d8c99e5edbd2d8ac7d3abe186dd435922e7e1a31/types/index.d.ts#L6
I cant do
import { NuxtAxiosInstance } from '@nuxtjs/axios'