* Type guard to check if a string is a valid context name.
(value: string)
| 82 | * Type guard to check if a string is a valid context name. |
| 83 | */ |
| 84 | function isValidContext(value: string): value is KeybindingContextName { |
| 85 | return (VALID_CONTEXTS as readonly string[]).includes(value) |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * Validate a single keystroke string and return any parse errors. |