Type for parameter in TypeScript Arrow Function
<p>With </p>

<pre><code>"noImplicitAny": true
</code></pre>

<p>TypeScript will give the error:</p>

<p><em>Parameter 'x' implicitly has an 'any' type</em></p>

<p>for</p>

<pre><code>.do(x =&gt; console.log(x));
</code></pre>

<p>and error</p>

<p><em>',' expected</em></p>

<p>for:</p>

<pre><code>.do(x: any =&gt; console.log(x));
</code></pre>