title: Typescript using enum within an interface
body: <p>I am new to Typescript and I am not sure about the syntax. I tried searching online but didn't find anything helpful.</p>
  
  <p>These are my interfaces and enum definitions.</p>
  
  <pre><code>interface Products {
      asian: {[key: string]: string};
      american: {[key: string]: string};
  }
  
  enum State {
     NEWYORK = 'nyc',
     BOSTON = 'boston'
  }
  
  interface Branch {
     nyc: {
       products: Products;
     };
     boston: {
        products: Products;
     };
  }
  </code></pre>
  
  <p>I am not sure how to use the Enum <code>State</code> inside <code>Branch</code> interface. So that I can use <code>STATE.NEWYORK</code> and <code>STATE.BOSTON</code> Enums.
  Something like this:</p>
  
  <pre><code>interface Branch {
     State.NEWYORK: {
       products: Products;
     };
     STATE.BOSTON: {
        products: Products;
     };
  }
  </code></pre>
  
  <p>Thanks for reading.</p>