title: Default value of Type in Generic classes in Typescript
body: <p>I need to set a default value of a variable based on its type in Typescript generic classes like below</p>
  
  <pre><code>  class MyClass&lt;T&gt;{
        myvariable: T // Here I want to set the value of this variable 
                      // with the default value of the type passed in 'T'
      }
  </code></pre>
  
  <p>For example if the T is number then the default value of the variable <code>myvariable</code> should be "0", similarly for string it should be empty string and so on..</p>