title: Angular: The 'Object' type is assignable to very few other types
body: <p>I have this piece of code that works just fine in Angular 5 but I'm trying to update to Angular 8:</p>
  
  <pre><code>  this.awsService.getProfiles().subscribe(profiles =&gt; {
      this.profiles = profiles;
      if (this.profiles.length &gt; 0 &amp;&amp; this.profiles.indexOf(this.currentProfile) == -1) {
        this.currentProfile = this.profiles[0];
        localStorage.setItem('profile', this.currentProfile);
      }
    }, err =&gt; {
      this.profiles = [];
    })
  </code></pre>
  
  <p>And I'm getting this error:</p>
  
  <pre><code>ERROR in app/app.component.ts:85:9 - error TS2696: The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?
    Type 'Object' is missing the following properties from type 'string[]': length, pop, push, concat, and 26 more.
  
  85         this.profiles = profiles;
  </code></pre>
  
  <p>What would be the correct syntax in Angular 8?</p>