MCPcopy
hub / github.com/claude-code-best/claude-code / isKeybindingBlockArray

Function isKeybindingBlockArray

src/keybindings/loadUserBindings.ts:108–110  ·  view source on GitHub ↗

* Type guard to check if an array contains only valid KeybindingBlocks.

(arr: unknown)

Source from the content-addressed store, hash-verified

106 * Type guard to check if an array contains only valid KeybindingBlocks.
107 */
108function isKeybindingBlockArray(arr: unknown): arr is KeybindingBlock[] {
109 return Array.isArray(arr) && arr.every(isKeybindingBlock)
110}
111
112/**
113 * Get the path to the user keybindings file.

Callers 2

loadKeybindingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected