Vue 3 + TS: fix for config.globalProperties services

pull/880/head
Andrea Demattè 2021-01-24 16:45:13 +01:00
parent 97bcf12331
commit 704cc8af50
2 changed files with 12 additions and 1 deletions

View File

@ -11,4 +11,10 @@ declare module 'vue/types/vue' {
interface Vue {
$confirm: ConfirmationServiceMethods;
}
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$confirm: ConfirmationServiceMethods;
}
}

View File

@ -14,3 +14,8 @@ declare module 'vue/types/vue' {
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$toast: ToastServiceMethods;
}
}