(file: string, action: PatchAction)
| 569 | } |
| 570 | |
| 571 | function successResult(file: string, action: PatchAction): ApplyPatchJson { |
| 572 | return { |
| 573 | type: 'json', |
| 574 | value: { |
| 575 | message: 'Applied 1 patch operation.', |
| 576 | applied: [{ file, action }], |
| 577 | }, |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | function errorResult(errorMessage: string): ApplyPatchJson { |
| 582 | return { |