// could this optimize? export function useDefaultProps(a: Partial, b: A): A { return { ...a, ...b } }