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

Function isRejectedMessage

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

Source from the content-addressed store, hash-verified

358}
359
360function isRejectedMessage(data: unknown): data is { text: 'DIFF_REJECTED' } {
361 return (
362 Array.isArray(data) &&
363 typeof data[0] === 'object' &&
364 data[0] !== null &&
365 'type' in data[0] &&
366 data[0].type === 'text' &&
367 'text' in data[0] &&
368 data[0].text === 'DIFF_REJECTED'
369 )
370}
371
372function isSaveMessage(
373 data: unknown,

Callers 1

showDiffInIDEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected