Files
DefinitelyTyped/angular-hotkeys/angular-hotkeys.d.ts
2014-06-27 17:58:58 -07:00

31 lines
866 B
TypeScript

// Type definitions for angular-hotkeys
// Project: https://github.com/chieffancypants/angular-hotkeys
// Definitions by: Jason Zhao <https://github.com/jlz27>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module ng.hotkeys {
interface HotkeysProvider {
template: string;
includeCheatSheet: boolean;
cheatSheetHotkey: string;
cheatSheetDescription: string;
add(combo: string, description: string, callback: (event: Event, hotkeys: ng.hotkeys.Hotkey) => void): void;
add(hotkeyObj: ng.hotkeys.Hotkey): void;
del(combo: string): void;
get(combo: string): ng.hotkeys.Hotkey;
toggleCheatSheet(): void;
}
interface Hotkey {
combo: string;
description?: string;
callback: (event: Event, hotkey: ng.hotkeys.Hotkey) => void;
}
}