title: Typescript: Private class which is visible to classes in same module in different files
body: <p>My project uses the 'Multi-file internal modules' approach. During build everything is compiled into a single Javascript file.</p>
  
  <p>One thing that still bothers me is that I can't find a way to have private module level classes (not exported to the definition file) that are still visible and usable by classes in the same module residing in seperate files (i.e. C# internal classes). Any suggestions?</p>
  
  <p><strong>Foo.ts:</strong></p>
  
  <pre><code>module shared {
    class Foo { 
    }
  }
  </code></pre>
  
  <p><strong>Bar.ts:</strong></p>
  
  <pre><code>module shared {
    export class Bar { 
      constructor() {
        this.foo = new shared.Foo();
      }  
    }
  }
  </code></pre>
  
  <p><strong>Baz.ts:</strong></p>
  
  <pre><code>module shared {
    export class Baz { 
      constructor() {
        this.foo = new shared.Foo();
      }  
    }
  }
  </code></pre>