Typescript Interface to define type for my model
<p>I'm new to typescript and I have interface in typescript like this:</p>

<pre><code>interface Model{
   class : String,
   id: Number
}
</code></pre>

<p>and in my model class, I have used this interface like this:</p>

<pre><code>class MyModel{

    model: Array&lt;Model&gt; = []

    pushData(val){
       model.push(val) //error happens here
    }

}
</code></pre>

<p>On compilation typescript seems to be throwing error:</p>

<pre><code>error TS2345: Argument of type '{}' is not assignable to parameter of type 'Model'.
  Property 'class' is missing in type '{}'.
</code></pre>

<p>I have checked the value of <code>val</code> is nothing but:</p>

<pre><code>{
  class : "test", id : 123
}
</code></pre>

<p>which is matching my interface, then why typescript throws this error?</p>

<p>Typescript version is 1.6.2</p>