I am using TypeScript in my application, where I use function:
Object.assign(this.success, success.json())
However, during compilation, I r
Why not use the spread operator?
return {this.success, ...success.json() || {}};