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

Function isFileWriteOutput

source code/hooks/useTurnDiffs.ts:51–55  ·  view source on GitHub ↗
(result: FileEditResult)

Source from the content-addressed store, hash-verified

49}
50
51function isFileWriteOutput(result: FileEditResult): result is FileWriteOutput {
52 return (
53 'type' in result && (result.type === 'create' || result.type === 'update')
54 )
55}
56
57function countHunkLines(hunks: StructuredPatchHunk[]): {
58 added: number

Callers 1

useTurnDiffsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected