DefinitelyTyped/types/react-hook-mousetrap/index.d.ts
Barry Michael Doyle ba94ba69b1 Added react-fade-in Type Definitions (#41182)
* added react-fade-in type definitions

* added version in

* added type definitions for react-hook-mousetrap

* resolved prefer-declare-function error
2019-12-27 09:09:48 -06:00

10 lines
393 B
TypeScript

// Type definitions for react-hook-mousetrap 2.0
// Project: https://github.com/olup/react-hook-mousetrap
// Definitions by: Barry Michael Doyle <https://github.com/barrymichaeldoyle>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.1
declare function useMousetrap(keys: string | string[], callback: () => void): void;
export default useMousetrap;