title: Typescript Error: Type {...} is not assignable to type 'User[]'
body: <p>I started playing with Angular 4 and Typescript. I am totally new to Typescript. I saw this question got asked <a href="https://stackoverflow.com/questions/48392672/type-is-not-assignable-to-type-profile">here</a>, but I was not able to extract the answer to my problem.</p>
  
  <pre class="lang-js prettyprint-override"><code>import { OnInit } from '@angular/core';
  
  export class UserComponent implements OnInit {
      me: User[];
  
      ngOnInit() {
         this.me = {
             name: 'Jochen',
             age: 31,
             email: 'mail@web.de',
             address: {
                 street: 'Berlinerstraße 24',
                 city: 'Berlin',
                 state: 'Berlin'
             }
         };
      }
  }
  
  interface Address {
      city: string;
      street: string;
      state: string;
  }
  
  interface User {
      age: number;
      name: string;
      email: string;
      address: Address;
  }
  </code></pre>
  
  <p>Here is the error I got when running <code>ng serve</code>:</p>
  
  <pre><code>ERROR in src/app/user/user.component.ts(11,7): error TS2322: Type '{ name: string; age: number; email: string; address: { street: string; city: string; state: strin...' is not assignable to type 'User[]'.
    Object literal may only specify known properties, and 'name' does not exist in type 'User[]'.
  </code></pre>
  
  <p>I wonder how to unserstand the second sentence, where it says <code>'name' does not exist in type 'User[]'</code> it exists. Can one help me to understand what I am getting wrong?</p>