title: Multiple files making up Type Script project
body: <p>Recently I have been working with TypeScript and everything has been fine and I really, really like it.. Makes JavaScript workable again! :)</p>
  
  <p>we have tried to follow the same idea as we would behind any .net project e.g single file per class/interface</p>
  
  <pre><code>module Infrastructure {
      export interface IBaseViewModel {
          addOrRemoveClass(selector: string, className: string);
      }
  }
  </code></pre>
  
  <p>the problem we have come across is this - all the dependent files are not being included? when it comes to being run.</p>
  
  <p>If you look at this file which is the main entry point to our application, I get an undefined error on creating a new ViewModelBuilder</p>
  
  <pre><code>module Infrastructure {
      export class Fusion {
          constructor() {
              this.vmBuilder = new ViewModelBuilder();
              this.setApplicationDefaults();
              this.start();
          }
  
          private vmBuilder: IViewModelBuilder;
  
          private start() {
              this.vmBuilder.process();
          }
  
          private setApplicationDefaults() {
              $.pnotify.defaults.styling = "jqueryui";
              $.pnotify.defaults.history = false;
              $.pnotify.defaults.auto_display = false;
          }
      }
  }
  </code></pre>
  
  <p>and at the top of the file we have</p>
  
  <pre><code>/// &lt;reference path="../Typings/jquery.d.ts" /&gt;
  /// &lt;reference path="ViewModelBuilder/ViewModelBuilder.ts" /&gt;
  /// &lt;reference path="ViewModelBuilder/IViewModelBuilder.ts" /&gt;
  </code></pre>
  
  <p>also ViewModelBuilder</p>
  
  <pre><code>module Infrastructure {
  
      export class ViewModelBuilder { }
  }
  </code></pre>
  
  <p><strong>So the question is this - What is the best way to go on? how can we get other class declarations to work?</strong> our project is going to grow considerably we probably 100 view models which will represent each view (the project is a conversion from windows forms to web)</p>
  
  <p>Any help would be fantastic as we really need to conquer this and move on! :)</p>