MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isFileWriteOutput

Function isFileWriteOutput

src/hooks/useTurnDiffs.ts:49–53  ·  view source on GitHub ↗
(result: FileEditResult)

Source from the content-addressed store, hash-verified

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

Callers 1

useTurnDiffsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected