MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / parseOutputResolution

Function parseOutputResolution

packages/cli/src/commands/cloudrun.ts:823–831  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

821}
822
823function 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

Callers 1

buildRenderConfigFunction · 0.70

Calls 1

normalizeResolutionFlagFunction · 0.85

Tested by

no test coverage detected