MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / isClosedMessage

Function isClosedMessage

src/hooks/useDiffInIDE.ts:346–356  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

344}
345
346function isClosedMessage(data: unknown): data is { text: 'TAB_CLOSED' } {
347 return (
348 Array.isArray(data) &&
349 typeof data[0] === 'object' &&
350 data[0] !== null &&
351 'type' in data[0] &&
352 data[0].type === 'text' &&
353 'text' in data[0] &&
354 data[0].text === 'TAB_CLOSED'
355 )
356}
357
358function isRejectedMessage(data: unknown): data is { text: 'DIFF_REJECTED' } {
359 return (

Callers 1

showDiffInIDEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected