react-weekly-schedule
Version:
 
10 lines • 533 B
TypeScript
/// <reference types="mousetrap" />
/// <reference types="react" />
/**
* Use mousetrap hook
*
* @param handlerKey - A key, key combo or array of combos according to Mousetrap documentation.
* @param handlerCallback - A function that is triggered on key combo catch.
*/
export declare function useMousetrap(handlerKey: string | string[], handlerCallback: (e: ExtendedKeyboardEvent, combo: string) => void, elementOrElementRef: typeof document | React.RefObject<Element | null>): void;
//# sourceMappingURL=useMousetrap.d.ts.map