Solución
solution.tsTypeScript
export function mergeSettings(
defaults: Record<string, unknown>,
custom: Record<string, unknown>
): Record<string, unknown> {
// Fusiona defaults y custom usando spread — custom sobreescribe a defaults
return { ...defaults, ...custom };
}0respuestas