UNPKG

@jk-core/hooks

Version:
9 lines (8 loc) 277 B
import { RefObject } from 'react'; interface Props { targetRef: RefObject<HTMLElement | null>; eventList: Array<string>; handler: () => void; } declare const useInterectOutside: ({ targetRef, eventList, handler }: Props) => void; export default useInterectOutside;