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

Function normalizeRuntime

packages/cli/src/commands/keyframes.ts:956–968  ·  view source on GitHub ↗
(
  runtime: unknown,
  fallback: KeyframesCommandOptions["defaultRuntime"],
)

Source from the content-addressed store, hash-verified

954}
955
956function normalizeRuntime(
957 runtime: unknown,
958 fallback: KeyframesCommandOptions["defaultRuntime"],
959): KeyframesCommandOptions["defaultRuntime"] {
960 if (typeof runtime !== "string") return fallback;
961 const normalized = runtime.toLowerCase();
962 return normalized === "gsap" ||
963 normalized === "css" ||
964 normalized === "anime" ||
965 normalized === "all"
966 ? normalized
967 : fallback;
968}
969
970function filterCompositionsByRuntime(
971 comps: SurfacedComposition[],

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected