(output: Output)
| 35 | export type Output = typeof Output.Type |
| 36 | |
| 37 | export const toModelOutput = (output: Output) => |
| 38 | [ |
| 39 | "Applied patch sequentially:", |
| 40 | ...output.applied.map( |
| 41 | (item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`, |
| 42 | ), |
| 43 | ].join("\n") |
| 44 | |
| 45 | type Prepared = |
| 46 | | (Extract<Patch.Hunk, { readonly type: "add" | "delete" }> & { |