mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 19:01:53 +02:00
7 lines
466 B
TypeScript
7 lines
466 B
TypeScript
|
import { MutableRefObject } from 'react';
|
||
|
declare type Container = MutableRefObject<HTMLElement | null> | HTMLElement | null;
|
||
|
declare type ContainerCollection = Container[] | Set<Container>;
|
||
|
declare type ContainerInput = Container | ContainerCollection;
|
||
|
export declare function useOutsideClick(containers: ContainerInput | (() => ContainerInput), cb: (event: MouseEvent | PointerEvent | FocusEvent, target: HTMLElement) => void, enabled?: boolean): void;
|
||
|
export {};
|