Skip to content
Permalink
Browse files
feat(types): provide nuxt 2.9 compatible types (#277)
  • Loading branch information
kevinmarrec authored and pi0 committed Aug 20, 2019
1 parent 11cf821 commit 7aee77b6fbe53374b2e63bd4e49b97cb2df92a85
Showing 1 changed file with 9 additions and 3 deletions.
@@ -26,10 +26,16 @@ declare module '@nuxt/vue-app' {
interface Context {
$axios: NuxtAxiosInstance
}
interface NuxtAppOptions {
$axios: NuxtAxiosInstance
}
}

// since nuxt 2.7.1 there is "NuxtAppOptions" for app context - see https://github.com/nuxt/nuxt.js/pull/5701
declare module '@nuxt/vue-app' {

// Nuxt 2.9+
declare module '@nuxt/types' {
interface Context {
$axios: NuxtAxiosInstance
}
interface NuxtAppOptions {
$axios: NuxtAxiosInstance
}

0 comments on commit 7aee77b

Please sign in to comment.