Skip to content

Commit

Permalink
fix: augment vue rather than @vue/runtime-core (#17448)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Aug 20, 2024
1 parent eae158c commit a00c565
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app-vite/templates/store/vuex/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface StateInterface {
}

// provide typings for `this.$store`
declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
$store: VuexStore<StateInterface>
}
Expand Down
2 changes: 1 addition & 1 deletion app-webpack/templates/store/vuex/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface StateInterface {
}

// provide typings for `this.$store`
declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
$store: VuexStore<StateInterface>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface StateInterface {
}

// provide typings for `this.$store`
declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
$store: VuexStore<StateInterface>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface StateInterface {
}

// provide typings for `this.$store`
declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
$store: VuexStore<StateInterface>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/quasar-cli-vite/supporting-ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export interface StateInterface {
}

// provide typings for `this.$store`
declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
$store: VuexStore<StateInterface>
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/vue-components/uploader.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ interface MyUploaderProps extends QUploaderProps {
onFreeze: boolean;
}

declare module '@vue/runtime-core' {
declare module 'vue' {
interface GlobalComponents {
MyUploader: GlobalComponentConstructor<MyUploaderProps, QUploaderSlots>;
}
Expand Down

0 comments on commit a00c565

Please sign in to comment.