This commit is contained in:
2021-03-16 19:13:14 +01:00
parent ddde9a4941
commit c5decef88c
11 changed files with 679 additions and 127 deletions

15
index.d.ts vendored
View File

@@ -1,27 +1,26 @@
import { NuxtAxiosInstance } from '@nuxtjs/axios'
import VueI18n, {IVueI18n} from "vue-i18n";
declare module 'vue/types/vue' {
interface Vue {
$axios: NuxtAxiosInstance
i18n: any
$axios: NuxtAxiosInstance,
}
}
declare module '@nuxt/types' {
interface NuxtAppOptions {
$axios: NuxtAxiosInstance
$i18n: any
$axios: NuxtAxiosInstance,
}
interface Context {
$axios: NuxtAxiosInstance
$i18n: any
$axios: NuxtAxiosInstance,
$i18n: VueI18n & IVueI18n
}
}
declare module 'vuex/types/index' {
interface Store<S> {
$axios: NuxtAxiosInstance
i18n: any
}
}