mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
fix(types): preserve compression detail config shapes (#8812)
This commit is contained in:
@@ -12,14 +12,14 @@ import type { CompressionConfig, CompressionPipelineStep } from "./types.ts";
|
||||
export function resolveStepDetailConfig(
|
||||
engine: CompressionPipelineStep["engine"],
|
||||
config: CompressionConfig | undefined
|
||||
): Record<string, unknown> {
|
||||
) {
|
||||
switch (engine) {
|
||||
case "headroom":
|
||||
return (config?.headroom as Record<string, unknown> | undefined) ?? {};
|
||||
return config?.headroom ?? {};
|
||||
case "session-dedup":
|
||||
return (config?.sessionDedup as Record<string, unknown> | undefined) ?? {};
|
||||
return config?.sessionDedup ?? {};
|
||||
case "ccr":
|
||||
return (config?.ccr as Record<string, unknown> | undefined) ?? {};
|
||||
return config?.ccr ?? {};
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user