title: How to iterate over keys of a generic object in TypeScript?
body: <p>I need to iterate over a large object which is just typed as "object".
  It contains an unknown number of objects of the same type.</p>
  
  <p>In older posts I had found solutions using a generator within a custom Symbol.iterator function to make the large object iterable with a for..of loop.</p>
  
  <p>But it seems to me, now in 2017, just using Object.keys is actually easier:</p>
  
  <pre><code>Object.keys(bigObject).forEach((key:string)=&gt;{
  console.log(bigObject[key]);
  });
  </code></pre>
  
  <p>This actually runs just fine! But the TypeScript compiler keeps giving me the error <em>"error TS7017: Element implicitly h
  as an 'any' type because type '{}' has no index signature"</em></p>
  
  <p>Does anybody have an idea what I am missing here? Or what is the current best practice to do such an iteration with ES2015 and TypeScript (2.2.2)?</p>