title: TypeScript 0.8.2 importing Node.js modules in internal modules
body: <p>Okay, as I can see you would like to use internal modules in your project. Well, there was a workaround in TypeScript 0.8.1.1, you could define non exported module (internal) and add imports above it. In 0.8.2 it seems that this doesn't work anymore. Only option I see here would be to completely omit import syntax and use standard require for node modules. I don't know if this is a good idea but please, share your opinions. I know that using import syntax will make module external (language specification), but that wasn't true in 0.8.1.1, bug maybe?</p>
  
  <p>In TypeScript 0.8.1.1 this worked and doesn't work in 0.8.2 anymore:</p>
  
  <pre><code>import path = module('path');
  import fs = module('fs');
  module SomeNamespace.Controller {
      export class Index {
          ...
      }
  }
  </code></pre>
  
  <p>I could reference file including above code using reference syntax on top of file in other internal modules and normally call:</p>
  
  <pre><code>var ctrl = new SomeNamespace.Controller.Index;
  ctrl.index();
  </code></pre>
  
  <p>It seems that in 0.8.2 this is the only way what it works for internal modules:</p>
  
  <pre><code>var path = require('path');
  var fs = require('fs');
  module SomeNamespace.Controller {
      export class Index {
          ...
      }
  }
  </code></pre>
  
  <p>Are there any other possibilities to mix internal modules with Node.js modules? Is there something wrong with above require usage (it compiles and runs okay ...)?</p>