`a.b = c` becomes `Object.assign({}, a, { b = c })`
can be written as
`{...a, b: c}`
(this desugars in typescript to) `Object.assign({}, a, { b: c });` [1] (note also you had a minor typo there with equal sign {b=c} should be a colon, I feel like I make that mistake multiple times per day when writing typescript / javascript, having two different assignment operator characters in the language is not good imho. i'd prefer if it was all just `=`, that will never change at this point though. )
For your seconds example,
`store.dispatch({type: METHOD, data})`
perhaps the Proxy object[2] (which allows for delegation, method_missing like functionality) could be used to turn the calls back into store.method(data)
0: Beauty is in the eye of the beholder as they say.
1: https://www.typescriptlang.org/play/#src=const%20a%20%3D%20%...
2: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...