Installation
npm install --save @types/react-hook-mousetrap
Summary
This package contains type definitions for react-hook-mousetrap (https://github.com/olup/react-hook-mousetrap).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-hook-mousetrap.
index.d.ts
declare function useMousetrap(keys: string | string[], callback: () => void): void;
export default useMousetrap;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Barry Michael Doyle.