title: Typescript import class
body: <p>I have been trying to get this thing to work for quite a while now, and so far no solution that I have found has worked for me. </p>
  
  <p>This is what I have: </p>
  
  <pre><code>//Test.ts
  module t
  {
      export class Test
      {
          constructor ()
          {
              alert("test");
          }
      }
  }
  
  //Main.ts
  /// &lt;reference path="Test.ts" /&gt;
  
  var test: t.Test = new t.Test();
  </code></pre>
  
  <p>As you can see I have two files, one is Main.ts and the other one is Test.ts. They are both in the same folder. Also if it helps I am using VS2012 and the Typescript plugin.</p>
  
  <p>Thank you for the help!
  EDIT: Oh btw, I get the error (in chrome): Uncaught ReferenceError: t is not defined </p>