UNPKG

just-hotkeys

Version:

A declarative keyboard shortcut manager for JavaScript and TypeScript - framework agnostic with React support

11 lines (10 loc) 436 B
import { ShortcutMap, ShortcutOptions, ShortcutManager } from './types'; /** * Create a keyboard shortcut manager */ export declare function createShortcuts(shortcuts: ShortcutMap, options?: ShortcutOptions): ShortcutManager; /** * Simple utility for one-time shortcut creation with cleanup */ export declare function shortcuts(shortcutMap: ShortcutMap, options?: ShortcutOptions): () => void; //# sourceMappingURL=manager.d.ts.map