本页还没有译文
本页 12 段还没译成Português (BR),下面显示的是英文原文。assertValidHotkey
还没翻译译自英文(tanstack.com)本页 12 段都还没译
function assertValidHotkey(hotkey): void;Defined in: validate.ts:134
Validates a hotkey and throws an error if invalid. Useful for development-time validation.
Parameters
hotkey
Hotkey | string & object
The hotkey string to validate
Returns
void
Throws
Error if the hotkey is invalid
Example
assertValidHotkey('Mod+S') // OK
assertValidHotkey('') // Throws Error: Invalid hotkey: Hotkey cannot be emptyAI 翻译查看英文原文