What return type should be used for setTimeout in TypeScript? : <p>Consider following code:</p>

<pre><code>const timer: number = setTimeout(() =&gt; '', 1000);
</code></pre>

<p>Typescript throws an error: <code>Type 'Timer' is not assignable to type 'number'.</code> Quick lookup tells me that <code>setTimeout</code> returns <code>NodeJS.Timer</code>.</p>

<p>But if I am doing <strong>browser-based development</strong>, using <code>NodeJS.Timer</code> feels wrong. Which is the correct type definition or return type for making <code>setTimeout</code> work without resorting to <code>any</code> declaration?</p>
