升级到 angular 8 后无法从“@angular/common/http/src/client”找到 HttpObserve

Could Not find HttpObserve from '@angular/common/http/src/client' after upgrading to angular 8

import { HttpObserve } from '@angular/common/http/src/client';
import { HttpParams, HttpHeaders } from '@angular/common/http';

type responseType = 'arraybuffer' | 'blob' | 'json' | 'text';

export interface RequestOptions {
  body?: any;
  headers?: HttpHeaders;
  params?: HttpParams;
  observe?: HttpObserve;
  reportProgress?: boolean;
  responseType?: responseType;
  withCredentials?: boolean;
}

以上代码在升级到 angular8 后抛出下面提到的错误,有帮助吗?

error TS2307: Cannot find module '@angular/common/http/src/client'.

Angular update guide 说:

If you use the legacy HttpModule and the Http service, switch to HttpClientModule and the HttpClient service. HttpClient simplifies the default ergonomics (you don't need to map to JSON anymore) and now supports typed return values and interceptors. Read more on angular.io.