title: Typescript Deprecation warning
body: <p>I am using this code for login but subscribe shows depricated. I am new to typescript, so can anyone help me out</p>
  <pre><code>doLogin() 
  {
    
       this.userService.doLogin(this.loginForm.value).subscribe(
       result =&gt; 
       {
       console.log(result);
       localStorage.setItem('userData', JSON.stringify(result));
       this.router.navigate(['/list-user']);
       this.toastr.success('Success', 'Logged In Successfully');
       },
       (error) =&gt; 
       {
       console.log(error);
       this.toastr.error('Failed', 'Invalid Credentials');
       });
  }
  </code></pre>
  <p>this works in an other project I've worked on but shows depricated here
  and I'm getting this error:</p>
  <p>@deprecated — Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: <a href="https://rxjs.dev/deprecations/subscribe-arguments" rel="nofollow noreferrer">https://rxjs.dev/deprecations/subscribe-arguments</a></p>
  <p>'(next?: ((value: Object) =&gt; void) | null | undefined, error?: ((error: any) =&gt; void) | null | undefined, complete?: (() =&gt; void) | null | undefined): Subscription' is deprecated.ts(6385)
  Observable.d.ts(55, 9): The declaration was marked as deprecated here.</p>