Files
DefinitelyTyped/mousetrap/mousetrap-global-bind.d.ts

12 lines
561 B
TypeScript

// Type definitions for Mousetrap 1.4.6's global-bind extension
// Project: http://craig.is/killing/mice#extensions.global
// Definitions by: Andrew Bradley <https://github.com/cspotcode>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="./mousetrap.d.ts" />
interface MousetrapStatic {
bindGlobal(keys: string, callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): void;
bindGlobal(keyArray: string[], callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string): void;
}