mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 22:08:03 +00:00
* fix(gcp-cloud-run): the BeginFrame contract image resolves the engine's core import The engine config imports the distributed fps set from @hyperframes/core, and the contract stage of the GCP image copies only parsers and engine sources, so the import failed at build time. The set now lives in a small core subpath (@hyperframes/core/distributed-fps) that the engine imports like its other light core imports, and the contract stage copies core like parsers. The core root export is unchanged. * style(core): format package.json
8 lines
381 B
TypeScript
8 lines
381 B
TypeScript
/** Integer rates the distributed renderer (Lambda, Cloud Run) accepts; fractional fps renders in-process only. */
|
|
export const DISTRIBUTED_FPS = [24, 25, 30, 60] as const;
|
|
export type DistributedFps = (typeof DISTRIBUTED_FPS)[number];
|
|
|
|
export function isDistributedFps(value: unknown): value is DistributedFps {
|
|
return (DISTRIBUTED_FPS as readonly unknown[]).includes(value);
|
|
}
|