mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
415 B
TypeScript
10 lines
415 B
TypeScript
// Type definitions for react-click-outside-hook 1.0
|
|
// Project: https://github.com/bdeloeste/react-click-outside-hook#readme
|
|
// Definitions by: Bryan Deloeste <https://github.com/bdeloeste>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
export type HookReturnTuple = [((node?: Element | null) => void), boolean];
|
|
|
|
export function useClickOutside(): HookReturnTuple;
|