title: Typescript. How to export two classes (in separate files) in one module?
body: <p>I have two classes declared in two separate files.</p>
  
  <p><strong>a.ts</strong></p>
  
  <pre><code>export class AClass {
  
    public constructor () {
      console.log('AClass');
    }
  
  }
  </code></pre>
  
  <p><strong>b.ts</strong></p>
  
  <pre><code>export class BClass {
  
    public constructor () {
      console.log('BClass');
    }
  
  }
  </code></pre>
  
  <p>I want to merge them in one module. How I can realise it?</p>
  
  <pre><code>///&lt;reference path='a.ts' /&gt;
  ///&lt;reference path='b.ts' /&gt;
  
  module Common {
  
    export class A extends AClass {}
    export class B extends BClass {}
  
  }
  </code></pre>
  
  <p>says: </p>
  
  <blockquote>
    <p>Cannot find name 'AClass'.</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>Cannot find name 'BClass'.</p>
  </blockquote>
  
  <p>I can import classes</p>
  
  <pre><code>import AClass = require('a');
  import BClass = require('b');
  
  module Common {
  
  }
  </code></pre>
  
  <p>But how I can correctly export them?</p>
  
  <p>Cannot find any information in documentation. Please, tell me the best way to realise declarations in one module? Thank you in advance</p>