@hanxx/vue-hooks
Version:
⚡️ Awesome Vue Hooks
6 lines (5 loc) • 308 B
TypeScript
import { Ref } from '@vue/composition-api';
export interface ReturnValue {
element: Ref<Vue | Element | Vue[] | Element[] | null>;
}
export default function useClickAway(onClickAway: (event?: Event) => void, dom?: Ref<Vue | Element | Vue[] | Element[]>, eventName?: keyof DocumentEventMap): ReturnValue;