UNPKG

ahooks

Version:
5 lines (4 loc) 304 B
import type { BasicTarget } from '../utils/domTarget'; type DocumentEventKey = keyof DocumentEventMap; export default function useClickAway<T extends Event = Event>(onClickAway: (event: T) => void, target: BasicTarget | BasicTarget[], eventName?: DocumentEventKey | DocumentEventKey[]): void; export {};