title: Imports with typescript
body: <p>I begin a new project with typescript and I have questions about imports.
  Let's assume I have these 2 files:</p>
  
  <pre><code>// foo.ts
  namespace root {
      export class Test {
          constructor() {
              console.log(BAR)
          }
      }
  }
  
  // a/bar.ts
  namespace root.a {
      export const BAR = 'Whatever'
  }
  </code></pre>
  
  <p>How can I use my BAR const into my Test class?
  I tried to add <code>/// &lt;reference path="a/bar.ts" /&gt;</code> and then I can call <code>root.a.BAR</code> or even <code>a.BAR</code>.</p>
  
  <p>But I would prefer to not use this reference statement, is it possible?
  Also, I would like to use <code>BAR</code> without its full namespace, is it also possible?</p>
  
  <p>Thank you in advance,<br>
  Xavier</p>