Merge pull request #6380 from sumomo015/sumomo015-6199-v3

fix(v3): global vue type augmentation
pull/6506/head
Tuğçe Küçükoğlu 2024-09-25 14:28:05 +03:00 committed by GitHub
commit 410ce99d0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 31 deletions

View File

@ -358,16 +358,7 @@ export declare function usePrimeVue(): {
declare const plugin: Plugin; declare const plugin: Plugin;
export default plugin; export default plugin;
declare module 'vue/types/vue' { declare module 'vue' {
interface Vue {
$primevue: {
config: PrimeVueConfiguration;
changeTheme: PrimeVueChangeTheme;
};
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties { interface ComponentCustomProperties {
$primevue: { $primevue: {
config: PrimeVueConfiguration; config: PrimeVueConfiguration;

View File

@ -27,13 +27,7 @@ export interface ConfirmationServiceMethods {
close(): void; close(): void;
} }
declare module 'vue/types/vue' { declare module 'vue' {
interface Vue {
$confirm: ConfirmationServiceMethods;
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties { interface ComponentCustomProperties {
$confirm: ConfirmationServiceMethods; $confirm: ConfirmationServiceMethods;
} }

View File

@ -25,13 +25,7 @@ export interface DialogServiceMethods {
open(content: any, options?: DynamicDialogOptions): DynamicDialogInstance; open(content: any, options?: DynamicDialogOptions): DynamicDialogInstance;
} }
declare module 'vue/types/vue' { declare module 'vue' {
interface Vue {
$dialog: DialogServiceMethods;
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties { interface ComponentCustomProperties {
$dialog: DialogServiceMethods; $dialog: DialogServiceMethods;
} }

View File

@ -39,13 +39,7 @@ export interface ToastServiceMethods {
removeAllGroups(): void; removeAllGroups(): void;
} }
declare module 'vue/types/vue' { declare module 'vue' {
interface Vue {
$toast: ToastServiceMethods;
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties { interface ComponentCustomProperties {
$toast: ToastServiceMethods; $toast: ToastServiceMethods;
} }