Skip to content

Commit

Permalink
Merge pull request #880 from dema121/fix-services-typescript-vue3
Browse files Browse the repository at this point in the history
Vue 3 + TS: fix for config.globalProperties services
  • Loading branch information
cagataycivici authored Feb 3, 2021
2 parents 7727883 + 704cc8a commit 6a2d4a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/confirmationservice/ConfirmationService.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ declare module 'vue/types/vue' {
interface Vue {
$confirm: ConfirmationServiceMethods;
}
}
}

declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$confirm: ConfirmationServiceMethods;
}
}
5 changes: 5 additions & 0 deletions src/components/toastservice/ToastService.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ declare module 'vue/types/vue' {
}
}

declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$toast: ToastServiceMethods;
}
}

0 comments on commit 6a2d4a6

Please sign in to comment.