add ts version

This commit is contained in:
Bryan Deloeste
2019-04-11 14:27:01 -07:00
parent 123c1e467a
commit 01b4d030bd
+1 -1
View File
@@ -2,7 +2,7 @@
// 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
import { MutableRefObject } from "react";
export function useClickOutside<T>(): [MutableRefObject<T>, boolean];