UNPKG

@shopify/app-bridge

Version:

**Shopify is doubling our engineering staff in 2021! [Join our team and work on libraries like this one.](https://smrtr.io/5GGrc)**

11 lines (10 loc) 399 B
export interface Indexable { [key: string]: any; } /** * Returns a deeply merged object with properties from the 2 provided objects * @remarks - Only deeply merge objects. The second argument overrides the * first if it is provided as `null`, `undefined` or an array. * @public * */ export default function mergeProps<T extends Indexable, T2 extends Indexable>(obj: T, newObj: T2): T | T2;