Angular 角度5.2错误:无法转换类型';可观察<;某物[]>;输入';可观察<;somethingElse>';

Angular 角度5.2错误:无法转换类型';可观察<;某物[]>;输入';可观察<;somethingElse>';,angular,typescript,Angular,Typescript,使用Angular 5.2,我得到一个resharper typescript错误: 无法将类型“Observable”转换为类型“Observable” public orderHead$:可见; 恩戈尼尼特(){ this.orderHead$=this.route.paramMap.switchMap((params:paramMap)=>{ this.partBundle$=this.orderShipService.getPartBundleObservable(this.orderS

使用Angular 5.2,我得到一个resharper typescript错误: 无法将类型“Observable”转换为类型“Observable”

public orderHead$:可见;
恩戈尼尼特(){
this.orderHead$=this.route.paramMap.switchMap((params:paramMap)=>{
this.partBundle$=this.orderShipService.getPartBundleObservable(this.orderShipDetails$、this.cartons$、this.licensePlate、this.orderLine);
返回此.order.getOrderHeadObservable(+params.get('orderNumber');
}).share();
}

似乎Resharper希望share方法中包含类型,如下所示

this.orderHead$ = this.route.paramMap.switchMap((params: ParamMap) => {
    this.partBundle$ = 
this.orderShipService.getPartBundleObservable(this.orderShipDetails$, 
this.cartons$, this.licensePlate, this.orderLine);
    return this.order.getOrderHeadObservable(+params.get('orderNumber'));
}).share<IOrderHead>();
this.orderHead$=this.route.paramMap.switchMap((params:paramMap)=>{
此.partBundle$=
this.orderShipService.getPartBundleObservable(this.orderShipDetails$,
此.cartons$、此.licensePlate、此.orderLine);
返回此.order.getOrderHeadObservable(+params.get('orderNumber');
}).share();

然后,重拾器错误消失。

不知道出了什么问题。。。没有数据和最小的可重复性和完整的例子对你没有帮助。
this.orderHead$ = this.route.paramMap.switchMap((params: ParamMap) => {
    this.partBundle$ = 
this.orderShipService.getPartBundleObservable(this.orderShipDetails$, 
this.cartons$, this.licensePlate, this.orderLine);
    return this.order.getOrderHeadObservable(+params.get('orderNumber'));
}).share<IOrderHead>();