Skip to content

Commit

Permalink
fix(types): only augment module 'vue'
Browse files Browse the repository at this point in the history
See: nuxt/nuxt#28542
Signed-off-by: Roman Ondráček <mail@romanondracek.cz>
  • Loading branch information
Roman3349 committed Aug 22, 2024
1 parent 654a407 commit a422f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ToastifyContainer, type ToastFunc } from 'vue3-toastify';
import type { Plugin, VNode } from 'vue';
import type { Plugin } from 'vue';

declare const Vue3Toastify: Plugin;
export default Vue3Toastify;
Expand All @@ -11,7 +11,7 @@ declare global {
}
}

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface ComponentCustomProperties {
$toast: ToastFunc;
}
Expand Down

0 comments on commit a422f49

Please sign in to comment.