title: Declaring enum in a class
body: <p>I am having trouble declaring an enum element in a class. I've tried several values to declare the enum but I can't get it to work. </p>
  
  <p>This is the (non-working) class:</p>
  
  <pre><code>export class Device extends Electronics {
      public OS:string = '';
      protected ready:boolean = false;
      protected enum numbers{one, two, three} 
  
      constructor(OS:string, ready:boolean, numbers:enum){
          this.OS = OS;
          this.ready = ready;
          this.numbers = numbers;
      }
  }
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code>protected {one, two, three}numbers:enum;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>protected numbers{one, two, three}:enum;
  </code></pre>
  
  <p>also</p>
  
  <pre><code>protected numbers:enum{one, two three};
  </code></pre>
  
  <p>and</p>
  
  <pre><code>protected numbers:enum = {one, two, three};
  </code></pre>
  
  <p>Not a single one seems to work. So I must be missing something, because at this point I can't understand how enum works. (I have already looked at typescript documentation and several sites for more info without success)</p>