title: When use a interface or class in Typescript
body: <p>I have a simple scenario of a login that requires user's input a email and password in Typescript. I need to create some type to get this strong-typed and send it to the back-end.</p>
  
  <p>Should this be written as:</p>
  
  <pre><code>export interface UserLogin {
    email: string;
    password: string;
  }
  //OR
  export class UserLogin {
    email: string;
    password: string;
  }
  </code></pre>
  
  <p>And how to know when is the scenario to use any of these?</p>