title: typescript: How to import with original names
body: <p>Say I have a module</p>
  
  <pre><code>module A 
  {
      export function X ()
      {
          …
      }
  }
  </code></pre>
  
  <p>which I want to use in another module like this:</p>
  
  <pre><code>// Import fails with "Cannot find module 'A'." even with
  // A.ts being in same directory
  import * as A from "A";
  
  module B
  {
      function Y ()
      {
          // Module and function name carry information
          // which I want to keep for readability.
          A.X ();
      }
  }
  </code></pre>
  
  <p>This should be the easiest case of export and import but I just can't get it to work.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>As I said: The module name carries value. Having similar named functions in multiple modules (or namespaces) will happen. i.E.</p>
  
  <pre><code>module C 
  {
      export function X ()
      {
          …
      }
  }
  </code></pre>
  
  <p>And I certainly don't want to do name the functions <code>A.A_X</code> and <code>C.C_X</code> — Redundant naming makes me cringe.  </p>