title: how do I export namespace'd TypeScript interface?
body: <p>I have some TS code that was generated by a 3rd party lib that looks like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>export namespace com {
  
      namespace rynop {
  
          namespace alaynapage {
  
              interface IPage {
                  id?: (string|null);
              }
          }
      }
  }
  
  </code></pre>
  
  <p>I want to re-export the <code>IPage</code> interface from a new file (lets call it <code>page.model.ts</code>) so that I don't have to do the following every time I want to use this interface:</p>
  
  <pre class="lang-js prettyprint-override"><code>import { com } from '../../shared/apiclient';
  
  export class Page implements com.rynop.alaynapage.IPage {
  
     // Or use it as a param type...
     factory(data: com.rynop.alaynapage.IPage) {
     }
  }
  </code></pre>
  
  <p>I've tried:</p>
  
  <pre class="lang-js prettyprint-override"><code>export { com.rynop.alaynapage.IPage as IPage } from '../../shared/apiclient';
  // Error: has no exported member alaynapage
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>import { com } from '../../shared/apiclient';
  
  export const IPage = com.rynop.alaynapage.IPage;
  // Error: IPage' does not exist on type 'typeof alaynapage'. Did you mean 'Page`?
  // Makes sense cuz interface can't be const 
  </code></pre>
  
  <p>How do I do this?  I potentially have the option to change the generated code, but would prefer not to.</p>