Observable.forkJoin() TS2322 error after updating to TypeScript 2.4.1 and Rxjs 5.4.2
问题 In our angular 4.2.4 application, we use RxJS's Observable.forkJoin in a number of places to return heterogeneous types. For example: private fleet: Aircraft[]; private contractList: string[]; Observable.forkJoin([ this.fleetService.getFleet(), this.fleetService.getContractList() ]).subscribe( next => { this.fleet = results[0]; this.contractList = results[1]; }, error => console.error ); with the following service signatures: getFleet(): Observable<Aircraft[]> { ... } getContractList():