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

Function isFocusable

packages/pi-tui/src/tui.ts:117–119  ·  view source on GitHub ↗
(component: Component | null)

Source from the content-addressed store, hash-verified

115
116/** Type guard to check if a component implements Focusable */
117export function isFocusable(component: Component | null): component is Component & Focusable {
118 return component !== null && "focused" in component;
119}
120
121/**
122 * Cursor position marker - APC (Application Program Command) sequence.

Callers 1

setFocusInternalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected