title: How to declare a Set in typescript?
body: <p>I have following code</p>
  
  <pre><code>private readonly direction :any ={
      east : "1",
      west : "2"
  }
  
  private readonly validDirections:Set&lt;Object&gt;= new Set(Object.values(this.direction));    
  </code></pre>
  
  <p>But typescript compiler shows an error saying 'Set' only refers to a type, but is being used as a value here.
  Also it shows 'values' does not exist in type Object Constructor</p>
  
  <p><a href="https://i.stack.imgur.com/Wtr4r.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Wtr4r.jpg" alt=" &#39;Set&#39; only refers to a type"></a>
  <a href="https://i.stack.imgur.com/kqHzg.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/kqHzg.jpg" alt=" values does not exist"></a></p>
  
  <p>I am using typescript 2.1.5. </p>
  
  <p>highlights from tsconfig.json:</p>
  
  <pre><code> "target": "es6"
  "lib": ["dom","es6","es7.object"],
  </code></pre>
  
  <p>What am i doing wrong here? How to solve this issue?</p>