I'm currently following the instructions provided in the documentation.
const keyMap = {
CONTRACT: "alt+down",
COMMAND_DOWN: { sequence: "command", action: "keydown" }
};
An error is occurring and I'm unsure how to resolve it.
No matching overload found for this call.
Overload 1 of 2, '(props: Readonly<GlobalHotKeysProps>): GlobalHotKeys', encountered an error.
Type '{ CONTRACT: string; COMMAND_DOWN: { sequence: string; action: string; }; }' cannot be assigned to type 'KeyMap'.
Property 'COMMAND_DOWN' does not align with the index signature.
Type '{ sequence: string; action: string; }' cannot be assigned to type 'KeySequence'.
Property 'sequences' is missing in type '{ sequence: string; action: string; }' but required in type 'ExtendedKeyMapOptions'.
Overload 2 of 2, '(props: GlobalHotKeysProps, context?: any): GlobalHotKeys', encountered an error.
Type '{ CONTRACT: string; COMMAND_DOWN: { sequence: string; action: string; }; }' cannot be assigned to type 'KeyMap'. TS2769
For more information on React Hotkeys, visit: https://github.com/greena13/react-hotkeys