mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 07:51:53 +02:00
6 lines
466 B
TypeScript
6 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 {};
|