routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
import type { DirectiveBinding } from 'vue';
|
||||
interface ClickOutsideBindingArgs {
|
||||
handler: (e: MouseEvent) => void;
|
||||
closeConditional?: (e: Event) => boolean;
|
||||
include?: () => HTMLElement[];
|
||||
}
|
||||
interface ClickOutsideDirectiveBinding extends DirectiveBinding {
|
||||
value: ((e: MouseEvent) => void) | ClickOutsideBindingArgs;
|
||||
}
|
||||
export declare const ClickOutside: {
|
||||
mounted(el: HTMLElement, binding: ClickOutsideDirectiveBinding): void;
|
||||
beforeUnmount(el: HTMLElement, binding: ClickOutsideDirectiveBinding): void;
|
||||
};
|
||||
export default ClickOutside;
|
||||
Reference in New Issue
Block a user