mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 23:03:09 +00:00
style(producer): apply oxfmt to resolvePresetForLockedEncoder signature
The generic parameter constraint exceeded oxfmt's line width, so the formatter wraps the type-param list onto its own line. Applies the same formatting locally that CI's 'Format' job would have produced via 'bun run format:check' — no behavior change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
@@ -301,10 +301,9 @@ function hashChunkOutput(outputPath: string, kind: "file" | "frame-dir"): string
|
||||
* `getEncoderPreset` itself) shouldn't be able to silently regress
|
||||
* the contract without a fast-test signal.
|
||||
*/
|
||||
export function resolvePresetForLockedEncoder<P extends { codec: "h264" | "h265" | "vp9" | "prores" }>(
|
||||
basePreset: P,
|
||||
lockedEncoder: LockedRenderConfig["encoder"],
|
||||
): P {
|
||||
export function resolvePresetForLockedEncoder<
|
||||
P extends { codec: "h264" | "h265" | "vp9" | "prores" },
|
||||
>(basePreset: P, lockedEncoder: LockedRenderConfig["encoder"]): P {
|
||||
if (lockedEncoder === "libx265-software") {
|
||||
return { ...basePreset, codec: "h265" as const };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user