File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ export {
2121 type ExternalToast ,
2222 type Action ,
2323 type ToastClasses ,
24- type ToastToDismiss ,
25- type PromiseIExtendedResult
24+ type ToastToDismiss
2625}
2726
2827const plugin : Plugin = {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Toaster from './packages/Toaster.vue'
33
44/**
55 * VueSonner plugin for Vue 3
6- *
6+ *
77 * - Globally registers the `<Toaster />` component
88 * - Adds `$toast` to all component instances (Options API)
99 * - Provides `toast` via Vue’s dependency injection (Composition API)
@@ -47,12 +47,12 @@ const VueSonner = {
4747 // Provide toast for Composition API usage
4848 app . provide ( 'toast' , toast )
4949
50- // assign toast to window
50+ // assign toast to window
5151 if ( typeof window !== 'undefined' ) {
5252 window . toast = toast
5353 }
5454 }
5555}
5656
5757// UMD-friendly single export for Vue.use(VueSonner)
58- export default VueSonner
58+ export default VueSonner
Original file line number Diff line number Diff line change 1- import type { } from 'vue-sonner'
2- import { toast } from 'vue-sonner'
1+ import { toast } from '../packages'
32import { defineNuxtPlugin } from 'nuxt/app'
43
54export default defineNuxtPlugin ( ( ) => {
You can’t perform that action at this time.
0 commit comments