Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const mixComplex = (from: string, to: string) => {
const valueTemplate = complex.createTransformer(from);
invariant(
valueTemplate(from) === complex.createTransformer(to)(from),
`Values '${from}' and '${to}' are of different format, or a value might have changed value type.`
);
return pipe(
mixArray(complex.parse(from), complex.parse(to)),
valueTemplate
);
};