title: (TS) Spread types may only be created from object types
body: <p>I have been implementing Aurelia-DragNDrop. However, its written in Javascript as are the docs and examples and I am working in Typescript. </p>
  
  <p>In the course of implementing the examples I have come across the above error. I therefore researched the spread operator on SO and found <a href="https://stackoverflow.com/questions/51189388/typescript-spread-types-may-only-be-created-from-object-types">this</a>.
  It recommended using "...(xxx as object)" however my variable is already typed as an array from what I can gather. Other answers were not clear or React orientated - I even tried the Typescript playground with no success.</p>
  
  <p>The code:</p>
  
  <pre><code>@computedFrom('items', 'intention')
  get patchedItems() {
      const { items, intention } = this;
      if (!intention) return items;
  
      let patched = _.reject(items, { id: intention.id });
      const item = _.find(this.items, { id: intention.id });
  
      if (item) {
          // always show current moving item on top
          patched.push({ ...item, x: intention.x, y: intention.y });
      }
  
      return patched;
  }
  </code></pre>
  
  <p>Items have been declared at the top of the class as:</p>
  
  <pre><code>@bindable items = [
      { id: 'a', name: 'A', x: 20, y: 20 },
      { id: 'b', name: 'B', x: 50, y: 200 },
      { id: 'c', name: 'C', x: 200, y: 100 }
  ];
  </code></pre>
  
  <p>There was also chatter about the fact that this was going to be addressed in 3 etc.. I am on Typescript 3.4.</p>
  
  <p>Here is a picture of the error:</p>
  
  <p><a href="https://i.stack.imgur.com/GljTu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GljTu.png" alt="Spread Types can only be created from object types"></a></p>
  
  <p>How can I write this so the compiler doesnt complain?</p>