title: cannot set timeout in catcherror angular 6
body: <p>setting timeout in catcherror shows error in angular</p>
  
  <p>Argument of type <code>(error: any) =&gt; void</code> is not assignable to parameter of type <code>(err: any, caught: Observable&lt;HttpEvent&lt;any&gt;&gt;) =&gt; ObservableInput&lt;{}&gt;</code>.
    Type <code>void</code> is not assignable to type <code>ObservableInput&lt;{}&gt;</code>. [2345]</p>
  
  <p><a href="https://i.imgur.com/qWSyIP0.png" rel="nofollow noreferrer">http://i.imgur.com/qWSyIP0.png</a></p>
  
  <pre><code>          catchError(error =&gt; {
             if(error==403)
             {
              setTimeout(() =&gt; {
                  return next.handle(this.addToken(req,  authService.getToken())).pipe();
              }, 2000);
             }
  
          })
  </code></pre>