mirror of https://github.com/sundowndev/http.git
feat(types): add Context interface
parent
92edc6ab1d
commit
7f8952aa08
|
@ -21,6 +21,12 @@ interface NuxtAxiosInstance extends AxiosInstance {
|
|||
onResponseError(callback: (error: AxiosError) => void): void
|
||||
}
|
||||
|
||||
declare module '@nuxt/vue-app' {
|
||||
interface Context {
|
||||
$axios: NuxtAxiosInstance
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
interface Vue {
|
||||
$axios: NuxtAxiosInstance
|
||||
|
|
Loading…
Reference in New Issue