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