Argument of type 'string' is not assignable to parameter of type 'never'
<p>I'm getting a typescript error with version 2.0.3 on line 6. </p>

<pre><code> private getFormEncode(formValues: any): string {
    let str: Array&lt;any&gt; = [];
    for (let key of Object.keys(formValues)) {
      const name: string = encodeURIComponent(key);
      const value: string =  encodeURIComponent(formValues[key]);
      str.push(`${name}=${value}`);
    }
    return str.join('&amp;');
 }
</code></pre>