mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
12 lines
561 B
TypeScript
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;
|
|
}
|