(raw: unknown)
| 821 | } |
| 822 | |
| 823 | function parseOutputResolution(raw: unknown): CanvasResolution | undefined { |
| 824 | if (raw == null || raw === "") return undefined; |
| 825 | const normalized = normalizeResolutionFlag(String(raw)); |
| 826 | if (normalized) return normalized; |
| 827 | throw new Error( |
| 828 | `[cloudrun render] --output-resolution must be one of ${VALID_CANVAS_RESOLUTIONS.join("|")} ` + |
| 829 | `(or an alias: 1080p, 4k, uhd, hd, …); got ${String(raw)}`, |
| 830 | ); |
| 831 | } |
| 832 | |
| 833 | // ── parse helpers ───────────────────────────────────────────────────────── |
| 834 |
no test coverage detected