6 lines
384 B
TypeScript
6 lines
384 B
TypeScript
type Container = Element | null;
|
|
type ContainerCollection = Container[] | Set<Container>;
|
|
type ContainerInput = Container | ContainerCollection;
|
|
export declare function useOutsideClick(enabled: boolean, containers: ContainerInput | (() => ContainerInput), cb: (event: MouseEvent | PointerEvent | FocusEvent | TouchEvent, target: HTMLOrSVGElement & Element) => void): void;
|
|
export {};
|