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

Function isExpandable

apps/kimi-code/src/tui/utils/component-capabilities.ts:9–16  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

7}
8
9export function isExpandable(obj: unknown): obj is Expandable {
10 return (
11 typeof obj === 'object' &&
12 obj !== null &&
13 'setExpanded' in obj &&
14 typeof (obj as Expandable).setExpanded === 'function'
15 );
16}
17
18export function hasDispose(value: unknown): value is Disposable {
19 return (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected