mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 00:51:29 +08:00
The official Mousetrap global-bind plugin uses bindGlobal as method name. See https://github.com/ccampbell/mousetrap/tree/master/plugins/global-bind
12 lines
568 B
TypeScript
12 lines
568 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/borisyankov/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;
|
|
}
|