MCPcopy Create free account
hub / github.com/arctic-cli/interface / match

Function match

packages/arctic/src/util/keybind.ts:13–18  ·  view source on GitHub ↗
(a: Info, b: Info)

Source from the content-addressed store, hash-verified

11 }
12
13 export function match(a: Info, b: Info): boolean {
14 // Normalize super field (undefined and false are equivalent)
15 const normalizedA = { ...a, super: a.super ?? false }
16 const normalizedB = { ...b, super: b.super ?? false }
17 return isDeepEqual(normalizedA, normalizedB)
18 }
19
20 /**
21 * Convert OpenTUI's ParsedKey to our Keybind.Info format.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected