There was an error while loading. Please reload this page.
1 parent 11cf821 commit 7aee77bCopy full SHA for 7aee77b
1 file changed
types/index.d.ts
@@ -26,10 +26,16 @@ declare module '@nuxt/vue-app' {
26
interface Context {
27
$axios: NuxtAxiosInstance
28
}
29
+ interface NuxtAppOptions {
30
+ $axios: NuxtAxiosInstance
31
+ }
32
-
-// 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' {
33
+
34
+// Nuxt 2.9+
35
+declare module '@nuxt/types' {
36
+ interface Context {
37
38
39
interface NuxtAppOptions {
40
41
0 commit comments