(chunk: ImageEntry)
| 20 | }; |
| 21 | |
| 22 | function statusFor(chunk: ImageEntry): ImageStatus { |
| 23 | if (chunk.added) { |
| 24 | return "added"; |
| 25 | } |
| 26 | if (chunk.removed) { |
| 27 | return "removed"; |
| 28 | } |
| 29 | return "unchanged"; |
| 30 | } |
| 31 | |
| 32 | // Turn a chunk (which contains an array of values and a status) |
| 33 | // into an array of values, each with the same status |