title: The element implicitly contains an 'any' type because no index signature is assigned to the type '{}'
body: <p>I have this typescript code, for an Express application:</p>
  
  <pre><code>for (var propertyName in req.body) {
      console.log(req.body[propertyName]);
  }
  </code></pre>
  
  <p>that work correctly</p>
  
  <p>Now i reuse in another typescript application, but i got this error:</p>
  
  <p>[ts] L'elemento contiene implicitamente un tipo 'any' perché al tipo '{}' non è assegnata alcuna firma dell'indice.</p>
  
  <p>[ts] The element implicitly contains an 'any' type because no index signature is assigned to the type '{}'.</p>
  
  <p>I don't understand the error</p>
  
  <p>The error is in</p>
  
  <pre><code>req.body[propertyName]
  </code></pre>
  
  <p>How can I assign the signature to the index?</p>