UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

19 lines (18 loc) 776 B
import type { DirectiveBinding } from 'vue'; type vClosableBindingValueHandler = (event: Event) => any; interface vClosableBindingValueObject { handler: vClosableBindingValueHandler; exclude?: string[]; } type vClosableBindingValue = vClosableBindingValueObject | vClosableBindingValueHandler; type vClosableBinding = DirectiveBinding<vClosableBindingValue>; declare function unbind(element: HTMLElement, binding: vClosableBinding): void; declare function bind(element: HTMLElement, binding: vClosableBinding): void; declare const directive: { mounted: typeof bind; unmounted: typeof unbind; }; declare const plugin: { install: (app: import("vue").App<any>) => void; }; export { directive as vClosable, vClosableBindingValue, plugin as vClosableInstall };