title: Typescript import statement
body: <p>I am trying to understand what different syntax<a href="https://english.stackexchange.com/a/65544/12177">es</a> of <code>import</code> does and when I need to use them.</p>
  
  <p>I am using typescript 1.6 (latest version as of now).</p>
  
  <p>I have seen several examples of doing an import.  One looks like this:</p>
  
  <pre><code>import {Aurelia} from "aurelia-framework";
  </code></pre>
  
  <p>Which gives me access to <code>Aurelia</code> from the Aurelia Framework.  I more or less get this one, but I am unsure what where the part in the quotes is looking up from.</p>
  
  <p>Here is another one that resharper inserted into my code:</p>
  
  <pre><code>import myJsServiceActions = require("../../service_actions/myJsFile");
  </code></pre>
  
  <p>This also gives me access to the stuff in myJsFile.  But the syntax is quite different.  And this one seems to be a path reference in the quotes.</p>
  
  <p>Also this one does not use the curly braces {} like the first one.  When I try to put in something like {ServiceActions} (a module in that file) it gives an error on the <code>require</code> saying that a string literal is expected.</p>
  
  <p><strong>What is different about this second usage (from the first one)?</strong></p>
  
  <p>I have also seen these usages in the internet, but I am assuming they are just older syntax (if they are still used please indicate how they are different):</p>
  
  <pre><code>/// &lt;reference path="myModules.d.ts" /&gt;
  ....
  import gt = module('greeter'); 
  </code></pre>
  
  <hr>
  
  <p>And last, how does it find the stuff in the quotes?  I tried this:</p>
  
  <pre><code>import breeze from "breeze";
  </code></pre>
  
  <p>and I get the error:</p>
  
  <blockquote>
    <p>Cannot find module "breeze"</p>
  </blockquote>
  
  <p>But in my config.js these are defined right next to eachother:</p>
  
  <pre><code>map: {
      //....
      "aurelia-framework": "github:aurelia/framework@0.18.0",
      "breeze": "npm:breeze-client@1.5.5",
     //.....
    }
  </code></pre>
  
  <p><strong>It seems to me that if the import of aurelia-framework works, then breeze should work too.</strong>  But I assume that is my ignorance of how 'import' works that is causing the problem.</p>