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

Function normalizeResolutionFlag

packages/parsers/src/types.ts:59–66  ·  view source on GitHub ↗
(input: string | undefined)

Source from the content-addressed store, hash-verified

57 * can produce their own "invalid" UX (CLI exit, route validation, etc.).
58 */
59export function normalizeResolutionFlag(input: string | undefined): CanvasResolution | undefined {
60 if (!input) return undefined;
61 const lowered = input.toLowerCase();
62 if ((VALID_CANVAS_RESOLUTIONS as readonly string[]).includes(lowered)) {
63 return lowered as CanvasResolution;
64 }
65 return RESOLUTION_ALIASES[lowered];
66}
67
68export interface TimelineElementBase {
69 id: string;

Callers 6

parseRenderOverridesFunction · 0.85
runFunction · 0.85
parseOutputResolutionFunction · 0.85
runFunction · 0.85
parseOutputResolutionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected