title: angular 2 observable timeout second parameter type
body: <p>I am currently trying to make <em>timeout()</em> method of Angular 2 Observable work properly, but in all tutorials there is similair code, where the second argument of <em>timeout()</em> method is a simple Error:</p>
  
  <pre><code>return this.http.get('http://...')
                  .timeout(2000, new Error('Timeout exceeded'));
  </code></pre>
  
  <p>But when I copy this code, TypeScript says that the second argument has invalid type and expects to see smth which implements interface <em>IScheduler</em>. </p>
  
  <p>One of the ways to solve the problem is to make new class which implements IScheduler interface, but it has functionality I am not familiar with (<em>now()</em> method and <em>Tasks</em>).</p>
  
  <p>Does anyone know, should I do it in this way or are there another ways to make things work? And what if instead of error I want to place some callback function?</p>