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

Function isSaveMessage

src/hooks/useDiffInIDE.ts:370–379  ·  view source on GitHub ↗
(
  data: unknown,
)

Source from the content-addressed store, hash-verified

368}
369
370function isSaveMessage(
371 data: unknown,
372): data is [{ text: 'FILE_SAVED' }, { text: string }] {
373 return (
374 Array.isArray(data) &&
375 data[0]?.type === 'text' &&
376 data[0].text === 'FILE_SAVED' &&
377 typeof data[1].text === 'string'
378 )
379}

Callers 1

showDiffInIDEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected