title: Creating model classes in TypeScript
body: <p>Hi I am new to TypeScript and I come from both a C# and JavaScript background. I am trying to create a way that allows me to create class models similar to what we can do in C#.</p>
  <p>Here is what I have tried:</p>
  <pre><code>export class DonutChartModel {
      dimension: number;
      innerRadius: number;
      backgroundClass: string;
      backgroundOpacity: number;
  }
  </code></pre>
  <p>I expected this to generate a JavaScript model that exposes the properties declared, but this generates only a function <code>DonutChartModel</code> with no properties declared.</p>
  <p>After looking at the docs I noticed that in order to expose the properties I have to add a constructor and initialize the properties from there. While this may work, it does not help situations where you may have 20 or more properties per model, as the initialization might look pretty clunky, in my opinion, and it also reduces readability a bit.</p>
  <p>I am hoping there is a way to do something like this without passing constructor params:</p>
  <pre><code>var model = new DonutChartModel();
  model.dimension = 5
  model.innerRadius = 20
  ....
  </code></pre>
  <p>Is there any option in TypeScript to do this?</p>