title: How to reference a class in another TypeScript file?
body: <p>How do i get access to classes in another <code>.ts</code> file in TypeScript?</p>
  
  <p>e.g.</p>
  
  <p><strong>app.ts</strong></p>
  
  <pre><code>window.onload = () =&gt; {
     /// &lt;reference path="TilingEngine/SofRenderer.ts" &gt;
     var drawingTool = new SofRenderer();
  };
  </code></pre>
  
  <p><strong>TilingEngine/SofRenderer.ts</strong></p>
  
  <pre><code>class SofRenderer {
  }
  </code></pre>
  
  <p>Fails to compile, with the error:</p>
  
  <blockquote>
    <p>Could not find symbol 'SofRenderer'.</p>
  </blockquote>
  
  <h2>See also</h2>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/12699940/how-can-i-import-an-external-file-with-typescript">How can I import an external file with TypeScript?</a> (i'm not using node)</li>
  <li><a href="https://stackoverflow.com/questions/12930049/how-do-i-import-other-typescript-files">How do I import other TypeScript files?</a> (i'm not using modules)</li>
  </ul>