(hotkey: Hotkey | (string & {}))
| 157 | * ``` |
| 158 | */ |
| 159 | export function checkHotkey(hotkey: Hotkey | (string & {})): boolean { |
| 160 | const result = validateHotkey(hotkey) |
| 161 | |
| 162 | if (result.errors.length > 0) { |
| 163 | console.error(`Hotkey '${hotkey}' errors:`, result.errors.join('; ')) |
| 164 | } |
| 165 | |
| 166 | if (result.warnings.length > 0) { |
| 167 | console.warn(`Hotkey '${hotkey}' warnings:`, result.warnings.join('; ')) |
| 168 | } |
| 169 | |
| 170 | return result.valid |
| 171 | } |
no test coverage detected
searching dependent graphs…