title: C# viewmodel to TypeScript
body: <p>I have a C# viewmodel:</p>
  
  <pre><code>public class LoginModel
  {
      [Required(ErrorMessage = "Email is not specified")]
      public string Email { get; set; }
  
      [Required(ErrorMessage = "No password is specified")]
      [DataType(DataType.Password)]
      public string Password { get; set; }
  }
  </code></pre>
  
  <p>Can I somehow create a typescript viewmodel which will specify the same attributes for Email and Password? I am new to JS (and typescript) and this part is confusing.</p>