[nit] There is a tiny breaking change in the typescript api when going from version 3 to 4.
Author: tkreisCreated Jan 2, 2026Updated Jan 2, 2026
The modifier keys are now optional, prev. there were just defined as boolean.
Before:
shift: boolean;
ctrl: boolean;
alt: boolean;
option: boolean;
control: boolean;
cmd: boolean;
command: boolean;vs now:
declare interface HotkeysInterface extends HotkeysAPI {
(key: string, method: KeyHandler): void;
(key: string, scope: string, method: KeyHandler): void;
(key: string, option: HotkeysOptions, method: KeyHandler): void;
shift?: boolean;
ctrl?: boolean;
alt?: boolean;
option?: boolean;
control?: boolean;
cmd?: boolean;
command?: boolean;
}I'm guessing the old types were just wrong and this did just correct the mistake.
Source: jaywcjlove/hotkeys-js