Type 'Observable<HttpEvent<>>' is not assignable to type 'Observable<>'
问题 I have this code snippet: SubmitTransaction(transNumber: string, transactionRequest: ITransactionRequestObj): Observable<TransactionResponse> { this.body = JSON.stringify(transactionRequest); this.headers = new HttpHeaders().set('Content-Type', 'application/json'); this.headers.append('Accept', 'application/json'); this.options = new RequestOptions({headers: this.headers}); return this.http.post<TransactionResponse>(this.baseUrl + '/transactions/' + transNumber + '/new', this.body, this