title: Element implicitly has an 'any' type because type object has no index signature
body: <p>I'm trying to simply index into a dictionary using typescript, here is a naive example that fails on lines <code>9</code> and <code>10</code>. I get the errors <code>Element implicitly has an 'any' type because type object has no index signature.</code> and <code>Element implicitly has an 'any' type because type {} has no index signature.</code></p>
  
  <pre><code>1        var configs = {
  2            'stuff': {
  3                'stuff1': 12,
  4                'stuff2': 13,
  5            }
  6        };
  7        var locked = new Object();
  8        for (var config in configs) {
  9            configs[config]['stuff1'] += 1;
  10           locked[config] = true;
  11       }
  </code></pre>
  
  <p>Other SO answers offer advice like making <code>locked</code> and <code>configs</code> into a custom <code>Dict</code> type (<code>type Dict = { [key: string]: object };</code>). This also did not work and provided the same error. </p>