MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isClosedMessage

Function isClosedMessage

source code/hooks/useDiffInIDE.ts:348–358  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

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

Callers 1

showDiffInIDEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected