title: How do I declare a public enum in typescript?
body: <p>For the following class:</p>
  
  <pre><code>module LayoutEngine {
  
      enum DocumentFormat {
          DOCX = 1
      };
  
      export class DocHeader {
  
          public format : DocumentFormat;
      }
  }
  </code></pre>
  
  <p>I have two questions:</p>
  
  <ol>
  <li>The above has a compile error where it says "Public property
  'format' of exported class has or is using private type
  'DocumentFormat'." but a declaration of public before the enum is
  also an error. So how do I do this?</li>
  <li>Is there a way to place the enum declaration inside the class? Just a module name isn't great for namespacing as I have a lot of classes in that module.</li>
  </ol>
  
  <p>thanks - dave</p>