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

Function isRejectedMessage

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

Source from the content-addressed store, hash-verified

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

Callers 1

showDiffInIDEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected