(text: string)
| 9 | } |
| 10 | |
| 11 | function json(text: string): unknown { |
| 12 | try { return JSON.parse(text); } catch { return undefined; } |
| 13 | } |
| 14 | |
| 15 | export function jsonOutput(call: GhCall): Array<{ at: number; value: unknown }> { |
| 16 | const chunks = call.output.filter(chunk => chunk.stream === "stdout"); |