(next: FooterPatch)
| 23 | |
| 24 | // Default to "running" phase when a status string arrives without an explicit phase. |
| 25 | function patch(next: FooterPatch): FooterPatch { |
| 26 | if (typeof next.status === "string" && next.phase === undefined) { |
| 27 | return { |
| 28 | phase: "running", |
| 29 | ...next, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | return next |
| 34 | } |
| 35 | |
| 36 | function summarize(value: unknown): unknown { |
| 37 | if (typeof value === "string") { |
no outgoing calls
no test coverage detected