title: How can i add a property to an inner Object in Typescript with spread operator?
body: <p>I have following Object</p>
  
  <pre><code>let car = { year: 2004, type: {name: "BMW"} }
  </code></pre>
  
  <p>Now i want to add a property to inner object "type". I want to to this with the spread operator, since i need a new object, because the existing is an immuteable state object. The result should be:</p>
  
  <pre><code>{ year: 2004, type: {name: "BMW", modell: "3er"}}
  </code></pre>
  
  <p>How can i do this?</p>