I\'m using a JS library, specifically select2
that acts a tad differently than I\'d like if the objects I\'m passing it aren\'t plain objects. This is all checked b
I know this is an old post, however in Nitzan's answer above, the typescript syntax checker seems to be ok with just doing the following:
const plainObj:any = ClassObj;
ClassObj.newProperty = "Test";
So it seems like there is no real need to use Object.assign unless there is a difference I am unaware of.