import deepmerge from 'deepmerge' ; /**
 * `deepmerge` concatenates arrays by default instead of overwriting them.
 * We define custom merging function for arrays to change that behaviour
 */ export default function merge < X , Y > ( x , y ) { return deepmerge ( x , y , { arrayMerge : ( _destinationArray , sourceArray ) : any [ ] => sourceArray , } ) ; }