export const extend = (a: A) => (b: B) => ({ ...a, ...b });