MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isNativeModifiersHelper

Function isNativeModifiersHelper

packages/pi-tui/src/native-modifiers.ts:15–19  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

13let nativeModifiersHelper: NativeModifiersHelper | null | undefined;
14
15function isNativeModifiersHelper(value: unknown): value is NativeModifiersHelper {
16 if (typeof value !== "object" || value === null) return false;
17 const candidate = (value as { isModifierPressed?: unknown }).isModifierPressed;
18 return typeof candidate === "function";
19}
20
21function loadNativeModifiersHelper(): NativeModifiersHelper | undefined {
22 if (nativeModifiersHelper !== undefined) return nativeModifiersHelper ?? undefined;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected