title: Type '{}' cannot be used as an index type
body: <p>I am using ramda's <code>toPairs</code> functions.</p>
  
  <pre><code>import { toPairs } from 'ramda';
  
  renderMenuItems({ copy, remove, add, update }) {
      return (
        toPairs({ copy, remove, add, update })
          // make sure we have a function first.
          .filter(([, val]) =&gt; typeof val === 'function')
          .map(([key, value], idx) =&gt;
            &lt;MenuItem
              key={idx}
              icon={ICONS[key]} //Error: Type '{}' cannot be used as an index type
              caption={CAPTIONS[key]}
              onClick={() =&gt; value()}
            /&gt;,
        )
      );
    }
  </code></pre>
  
  <p>The <code>key</code> and <code>value</code> is in type <code>{}</code>. But as per docs(<a href="http://ramdajs.com/docs/#toPairs" rel="nofollow noreferrer">http://ramdajs.com/docs/#toPairs</a>) it is a string.
  Can any one help me to solve this?</p>