UNPKG

@hanxx/vue-hooks

Version:
6 lines (5 loc) 308 B
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;