MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isValidContext

Function isValidContext

src/keybindings/validate.ts:84–86  ·  view source on GitHub ↗

* Type guard to check if a string is a valid context name.

(value: string)

Source from the content-addressed store, hash-verified

82 * Type guard to check if a string is a valid context name.
83 */
84function 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.

Callers 1

validateBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected