magner
Version:
Universal admin panel magnetic to any backend
9 lines (8 loc) • 301 B
TypeScript
/**
* Function adds a click-event listener, checks event target and fires callback function if needed
*
* @param contentId
* @param targetSelector
* @param callback
*/
export declare const useClickOutside: (contentId: string, targetSelector: string, callback: (e: EventTarget) => void) => void;