UNPKG

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