title: Property 'count' does not exist on type '{}'
body: <p>How do I get rid of Typescript errors for the data structure passed into a <code>then</code> promise?</p>
  
  <p>I am getting the following error: </p>
  
  <blockquote>
    <p>Property 'count' does not exist on type '{}'</p>
  </blockquote>
  
  <p>For the following code:</p>
  
  <pre class="lang-js prettyprint-override"><code>this.userData.getSocialLinks(this.navParams.get('image_owner_id')).then(socialLinks =&gt; {
    var i = 0;
    for (i=0; i &lt; socialLinks.count; i++) {
      if (socialLinks.results[i].social_type == 'TW') {
        this.profile.twitter = socialLinks.results[i].social_address;
        this.isExistingTW = true;
        this.twEntryID = socialLinks.results[i].id;
      }
      else if (socialLinks.results[i].social_type == 'IN') {
        this.profile.instagram = socialLinks.results[i].social_address;
        this.isExistingIN = true;
        this.inEntryID = socialLinks.results[i].id;
      }
    }
  });
  </code></pre>
  
  
  
  <p>I am guessing I have to define <code>socialLinks</code> somehow but can't work out where.</p>