Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(types): provide nuxt 2.9 compatible types (#78)
  • Loading branch information
nijitaro authored and pi0 committed Nov 1, 2019
1 parent 1674aae commit a6bab0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types/index.d.ts
Expand Up @@ -147,6 +147,13 @@ declare module '@nuxt/vue-app' {
}
}

// Nuxt 2.9+
declare module '@nuxt/types' {
interface Context {
$http: NuxtHTTPInstance
}
}

declare module 'vue/types/vue' {
interface Vue {
$http: NuxtHTTPInstance
Expand Down

0 comments on commit a6bab0f

Please sign in to comment.