UNPKG

@mundoit-lib/plugin-vue-event

Version:

Vue 3 plugin to handle global events between components, inspired by vue-events. This plugin provides a simple and efficient event bus system, allowing to emit, listen and unregister events in an intuitive way. Compatible with Vue 2 and Vue 3.

11 lines (8 loc) 243 B
import { App } from 'vue-demi'; interface Vue2Constructor { prototype: any; mixin: (options: any) => void; } declare function plugin(app: App): void; declare function plugin(Vue: Vue2Constructor): void; export { plugin as default };