diff --git a/app-vite/templates/store/vuex/ts/index.ts b/app-vite/templates/store/vuex/ts/index.ts index a80c746581a..8e961763143 100644 --- a/app-vite/templates/store/vuex/ts/index.ts +++ b/app-vite/templates/store/vuex/ts/index.ts @@ -27,7 +27,7 @@ export interface StateInterface { } // provide typings for `this.$store` -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $store: VuexStore } diff --git a/app-webpack/templates/store/vuex/ts/index.ts b/app-webpack/templates/store/vuex/ts/index.ts index a80c746581a..8e961763143 100644 --- a/app-webpack/templates/store/vuex/ts/index.ts +++ b/app-webpack/templates/store/vuex/ts/index.ts @@ -27,7 +27,7 @@ export interface StateInterface { } // provide typings for `this.$store` -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $store: VuexStore } diff --git a/create-quasar/templates/app/quasar-v2/ts-vite-1/axios/src/boot/axios.ts b/create-quasar/templates/app/quasar-v2/ts-vite-1/axios/src/boot/axios.ts index 05a99449ea9..db9557b8bd7 100644 --- a/create-quasar/templates/app/quasar-v2/ts-vite-1/axios/src/boot/axios.ts +++ b/create-quasar/templates/app/quasar-v2/ts-vite-1/axios/src/boot/axios.ts @@ -1,7 +1,7 @@ import { boot } from 'quasar/wrappers'; import axios, { AxiosInstance } from 'axios'; -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $axios: AxiosInstance; $api: AxiosInstance; diff --git a/create-quasar/templates/app/quasar-v2/ts-vite-1/vuex/src/store/index.ts b/create-quasar/templates/app/quasar-v2/ts-vite-1/vuex/src/store/index.ts index 5e3e1ecc804..c7cd9b3b935 100644 --- a/create-quasar/templates/app/quasar-v2/ts-vite-1/vuex/src/store/index.ts +++ b/create-quasar/templates/app/quasar-v2/ts-vite-1/vuex/src/store/index.ts @@ -27,7 +27,7 @@ export interface StateInterface { } // provide typings for `this.$store` -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $store: VuexStore } diff --git a/create-quasar/templates/app/quasar-v2/ts-vite-2/axios/src/boot/axios.ts b/create-quasar/templates/app/quasar-v2/ts-vite-2/axios/src/boot/axios.ts index 05a99449ea9..db9557b8bd7 100644 --- a/create-quasar/templates/app/quasar-v2/ts-vite-2/axios/src/boot/axios.ts +++ b/create-quasar/templates/app/quasar-v2/ts-vite-2/axios/src/boot/axios.ts @@ -1,7 +1,7 @@ import { boot } from 'quasar/wrappers'; import axios, { AxiosInstance } from 'axios'; -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $axios: AxiosInstance; $api: AxiosInstance; diff --git a/create-quasar/templates/app/quasar-v2/ts-webpack-3/axios/src/boot/axios.ts b/create-quasar/templates/app/quasar-v2/ts-webpack-3/axios/src/boot/axios.ts index 05a99449ea9..db9557b8bd7 100644 --- a/create-quasar/templates/app/quasar-v2/ts-webpack-3/axios/src/boot/axios.ts +++ b/create-quasar/templates/app/quasar-v2/ts-webpack-3/axios/src/boot/axios.ts @@ -1,7 +1,7 @@ import { boot } from 'quasar/wrappers'; import axios, { AxiosInstance } from 'axios'; -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $axios: AxiosInstance; $api: AxiosInstance; diff --git a/create-quasar/templates/app/quasar-v2/ts-webpack-3/vuex/src/store/index.ts b/create-quasar/templates/app/quasar-v2/ts-webpack-3/vuex/src/store/index.ts index 5e3e1ecc804..c7cd9b3b935 100644 --- a/create-quasar/templates/app/quasar-v2/ts-webpack-3/vuex/src/store/index.ts +++ b/create-quasar/templates/app/quasar-v2/ts-webpack-3/vuex/src/store/index.ts @@ -27,7 +27,7 @@ export interface StateInterface { } // provide typings for `this.$store` -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $store: VuexStore } diff --git a/create-quasar/templates/app/quasar-v2/ts-webpack-4/axios/src/boot/axios.ts b/create-quasar/templates/app/quasar-v2/ts-webpack-4/axios/src/boot/axios.ts index 05a99449ea9..db9557b8bd7 100644 --- a/create-quasar/templates/app/quasar-v2/ts-webpack-4/axios/src/boot/axios.ts +++ b/create-quasar/templates/app/quasar-v2/ts-webpack-4/axios/src/boot/axios.ts @@ -1,7 +1,7 @@ import { boot } from 'quasar/wrappers'; import axios, { AxiosInstance } from 'axios'; -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $axios: AxiosInstance; $api: AxiosInstance; diff --git a/docs/src/pages/quasar-cli-vite/supporting-ts.md b/docs/src/pages/quasar-cli-vite/supporting-ts.md index 31e05210a87..f1f39ae9c72 100644 --- a/docs/src/pages/quasar-cli-vite/supporting-ts.md +++ b/docs/src/pages/quasar-cli-vite/supporting-ts.md @@ -253,7 +253,7 @@ export interface StateInterface { } // provide typings for `this.$store` -declare module '@vue/runtime-core' { +declare module 'vue' { interface ComponentCustomProperties { $store: VuexStore } diff --git a/docs/src/pages/vue-components/uploader.md b/docs/src/pages/vue-components/uploader.md index d13f3d6b644..93a32ab6c5c 100644 --- a/docs/src/pages/vue-components/uploader.md +++ b/docs/src/pages/vue-components/uploader.md @@ -465,7 +465,7 @@ interface MyUploaderProps extends QUploaderProps { onFreeze: boolean; } -declare module '@vue/runtime-core' { +declare module 'vue' { interface GlobalComponents { MyUploader: GlobalComponentConstructor; }