Please, #TypeScript get out of my way, I know what I am doing. >
2 replies
let o = { foo: 'bar' }; o = { ...o, baz: 'boo' }; is perfectly fine.
But you complain that "Object literal may only specify known properties" ...
A static archive of Markus Tacker's tweets. Follow me on Mastodon: @[email protected].
Please, #TypeScript get out of my way, I know what I am doing. >
let o = { foo: 'bar' }; o = { ...o, baz: 'boo' }; is perfectly fine.
But you complain that "Object literal may only specify known properties" ...