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

Function hasDispose

apps/kimi-code/src/tui/utils/component-capabilities.ts:18–25  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

16}
17
18export function hasDispose(value: unknown): value is Disposable {
19 return (
20 typeof value === 'object' &&
21 value !== null &&
22 'dispose' in value &&
23 typeof (value as Disposable).dispose === 'function'
24 );
25}

Calls

no outgoing calls

Tested by

no test coverage detected