title: Type 'number' is not assignable to type 'Date' - Typescript not compiling
body: <p>I've got the following code for a jquery timer plugin. The compiler gives me the error: "Type 'number' is not assignable to type 'Date'"</p>
  
  <pre><code>$(function(){
      var note = $('#note'),
          ts = new Date(2012, 0, 1),
          newYear = false;
  
      if((new Date()) &gt; ts){
          ts = (new Date()).getTime() + 24*60*60*1000; //counting 24 hours
          newYear = false;
      }   
  
  });
  
  
          });
  
      };
  </code></pre>