vue3-toastify
Version:
🎉 Vue3-Toastify allows you to add notifications to your app with ease. No more nonsense!
19 lines (14 loc) • 466 B
TypeScript
import { ToastifyContainer, type ToastFunc } from 'vue3-toastify';
import type { Plugin } from 'vue';
declare const Vue3Toastify: Plugin;
export default Vue3Toastify;
declare global {
interface Window {
// toast for CDN compatibility
Vue3Toastify?: typeof Vue3Toastify;
}
}
declare module 'vue' {
export interface ComponentCustomProperties { $toast: ToastFunc }
export interface GlobalComponents { ToastifyContainer: typeof ToastifyContainer }
}