How can i write module & classes across typescript files
<p>I am trying to structure an app using typescript and angular. I have followed various example which point to the use of modules to group certain aspects together, however not sure if what i am getting is going to work...</p>

<p>I have one file called test.ts with the following structure</p>

<pre><code>module test
{
  class Blah
  {

  }

}
</code></pre>

<p>The second file test2.ts is as follows</p>

<pre><code>module test
{
   class Blah2
   {

   }

}
</code></pre>

<p>When TS generates this code in Javascript i am left with a duplicate variable definition for "var test" which doesnt seem right...</p>

<pre><code>var test;
(function (test) {
       var Blah = ......
})(test || (test = {}));

var test;
(function (test) {
       var Blah2 = ......
})(test || (test = {}));
</code></pre>

<p>How can i get around the duplicate variable definition of 'test' or is this not a problem? </p>