Skip to content

Commit a6bab0f

Browse files
nijitaropi0
authored andcommitted
feat(types): provide nuxt 2.9 compatible types (#78)
1 parent 1674aae commit a6bab0f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

types/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ declare module '@nuxt/vue-app' {
147147
}
148148
}
149149

150+
// Nuxt 2.9+
151+
declare module '@nuxt/types' {
152+
interface Context {
153+
$http: NuxtHTTPInstance
154+
}
155+
}
156+
150157
declare module 'vue/types/vue' {
151158
interface Vue {
152159
$http: NuxtHTTPInstance

0 commit comments

Comments
 (0)