title: Typescript: Type X is missing the following properties from type Y length, pop, push, concat, and 26 more. [2740]
body: <p>I have this Product interface:</p>
  <pre><code>export interface Product{
    code: string;
    description: string;
    type: string;
  }
  </code></pre>
  <p>Service with method calling product endpoint:</p>
  <pre><code>  public getProducts(): Observable&lt;Product&gt; {
      return this.http.get&lt;Product&gt;(`api/products/v1/`);
    }
    
  </code></pre>
  <p>And component where I use this service to get the Products.</p>
  <pre><code>export class ShopComponent implements OnInit {
      public productsArray: Product[];
      
      ngOnInit() {
          this.productService.getProducts().subscribe(res =&gt; {
            this.productsArray = res;
          });
      }
  }
  </code></pre>
  <p>With this state I'm getting error:</p>
  <blockquote>
  <p>[ts] Type 'Product' is missing the following properties from type
  'Product[]': length, pop, push, concat, and 26 more. [2740]</p>
  </blockquote>
  <p>Removing typing on <code>productsArray</code> variable removes the error, but don't get why this is not working, since server response is an array of objects in the type of <code>Products</code>?</p>