title: How to import an Enum
body: <p>I have created an enum, but I am having trouble importing and using the enum in VS15.</p>
  
  <p>This is the enum which is contained in enums.ts:</p>
  
  <pre><code>enum EntityStatus {
       New = 0,
       Active = 1,
       Archived = 2,
       Trashed = 3,
       Deleted = 4
  }
  </code></pre>
  
  <p>Visual Studio sees this enum without even importing and so does not give a compile time error.  But at runtime, an error is thrown</p>
  
  <pre><code> Cannot read property 'Archived' of undefined.
  </code></pre>
  
  <p>So now I try to import it like I import other classes:</p>
  
  <pre><code> import {EntityStatus} from "../../core/enums";
  </code></pre>
  
  <p>Visual Studio now gives a compile time error:</p>
  
  <pre><code> "...enums is not a module ..."
  </code></pre>
  
  <p>So how do I import the enum?</p>