mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-25 21:55:49 +08:00
31 lines
866 B
TypeScript
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;
|
|
}
|
|
}
|