DefinitelyTyped/types/react-click-outside-hook/index.d.ts
2019-04-11 15:57:08 -07:00

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;