Angular 如何修复Typescript子可分配接口错误?

Angular 如何修复Typescript子可分配接口错误?,angular,typescript,rxjs,rxjs6,Angular,Typescript,Rxjs,Rxjs6,我正在尝试将生产应用程序从7迁移到8。当我尝试构建时,出现以下错误: ERROR in app/vehicle/vehicle.component.ts:90:36 - error TS2344: Type 'IOwnerVehicle' does not satisfy the constraint 'ObservableInput<any>'. Property '[Symbol.iterator]' is missing in type 'IOwnerVehicle' but

我正在尝试将生产应用程序从7迁移到8。当我尝试构建时,出现以下错误:

ERROR in app/vehicle/vehicle.component.ts:90:36 - error TS2344: Type 'IOwnerVehicle' does not satisfy the constraint 'ObservableInput<any>'.
Property '[Symbol.iterator]' is missing in type 'IOwnerVehicle' but required in type 'Iterable<any>'.

90             flatMap<IVehicleOwner, IOwnerVehicle>(owner => {
                                      ~~~~~~~~~~~~~

  ../node_modules/typescript/lib/lib.es2015.iterable.d.ts:43:5
    43     [Symbol.iterator](): Iterator<T>;
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    '[Symbol.iterator]' is declared here.  

app/vehicle/vehicle.component.ts:90:36中的
错误-错误TS2344:类型“iownervicle”不满足约束“observeInput”。但我仍然不知道如何解决这个问题

VSCode显示车辆部件中没有错误。我认为ts文件后面的数字应该表示行和列,但是组件只有50行长,第36行是空的

Subscribable文档提到“TypeScript在支持定义为符号属性的方法的接口时遇到问题”,但IOwnerHicle接口只是一个属性包。它没有办法

唯一与订阅有关的代码是构造函数

构造函数(@Inject(MAT_DIALOG_DATA)私有所有者:IVehicleOwner,
私人svc:SearchService,
私有搜索DLG:MatDialogRef){
this.svc.getOwnerVehicles(owner.id.toString()).subscribe(
列表=>{
如果(list.length>0)
this.list=列表;
其他的
this.searchFailed=true;
});
}
服务再简单不过了

getOwnerVehicles(vehicleId:string):可观察{
constURL=`${this.webApi}/vehicle`;
返回此.http.get(url,
{params:{owner:vehicleId}});
}

有人能帮我找出我需要更改的内容或我需要查看的其他位置吗?

让我们看看
平面图的类型:

declare function mergeMap<T, O extends ObservableInput<any>>(project: (value: T, index: number) => O, concurrent?: number): OperatorFunction<T, ObservedValueOf<O>>;
您应该能够在
vehicle.component.ts
第90行第36列中找到它

flatMap<IVehicleOwner, ObservableInput<IOwnerVehicle>>(owner => {})