Skip to content
Permalink
Browse files

feat(types): add Context interface

  • Loading branch information...
mvrlin authored and pi0 committed Feb 10, 2019
1 parent 92edc6a commit 7f8952aa08e1fb3dcf283eaba2e6ccb63b21d99f
Showing with 6 additions and 0 deletions.
  1. +6 −0 types/index.d.ts
@@ -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

0 comments on commit 7f8952a

Please sign in to comment.
You can’t perform that action at this time.