title: Angular 2 unable to resolve lint errors for http call
body: <p>I have this api function:</p>
  
  <pre><code>getBrands(params?: any): Observable&lt;IBrand[]&gt; {
    return this.http.get(Host + endpoints.brands, params)
      .map((res: Response) =&gt; res.json() as IBrand[])
      .catch((error: any) =&gt; {
  
        this.notifications.show({message: 'Kunde inte hämta märken', theme: 'danger'});
  
        return error || 'Server fel';
      });
  }
  </code></pre>
  
  <p>It works fine by getting the data from the external api, but I get two lint errors which I cannot resolve for the life of me.</p>
  
  <p>First one is this:</p>
  
  <pre><code>Type 'Observable&lt;{}&gt;' is not assignable to type 'Observable&lt;IBrand[]&gt;'.
    Type '{}' is not assignable to type 'IBrand[]'.
      Property 'find' is missing in type '{}'.
  </code></pre>
  
  <p>And the second one is <code>Supplied parameters do not match any signature of call target</code> which comes from this line<code>.map((res: Response) =&gt; res.json() as IBrand[])</code>. </p>
  
  <p>Why do I get these errors and how can I resolve them?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p><code>IBrand</code> interface as requested:</p>
  
  <pre><code>export class IBrand {
    id?: string;
    name?: string;
    isActive?: boolean;
    image?: string;
  }
  </code></pre>