title: How to declare an enum inside a class in typescript?
body: <p>I am able to declare an <code>enum</code> inside a nested <code>namespace</code>. But unable to do so inside a <code>class</code>.</p>
  
  <pre><code>namespace N {
    namespace NN {
      enum { ONE };  // OK
    }
  }
  
  namespace N {
    class C {
      public enum { ONE };  // Error: ';' expected
    }
  }
  </code></pre>
  
  <p>What is the correct syntax?</p>