title: Property 'id' does not exist on type 'never'
body: <p>I am trying to display an API using *ngFor in frontend. But I am getting this error.
  &quot;Property 'id' does not exist on type 'never'.&quot;
  data is coming in console.
  My ts code,</p>
  <pre><code>posts = [] //problem lies here I guess
    constructor(private user:UsersService) 
    {
      this.user.getData().subscribe(data=&gt;{
        console.warn(data); // uptill here code works
        this.posts = data; // and here
      })
    }
  </code></pre>
  <p>my frontend code,</p>
  <pre><code>&lt;table border=&quot;1&quot;&gt;
  &lt;tr&gt;
      &lt;td&gt;Id&lt;/td&gt;
      &lt;td&gt;Title&lt;/td&gt;
      &lt;td&gt;User Id&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr *ngFor=&quot;let post of posts&quot;&gt;
      &lt;td&gt;{{post.id}}&lt;/td&gt;
      &lt;td&gt;Title&lt;/td&gt;
      &lt;td&gt;User Id&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  Thanks in advance