0
Observable<Array<ISource>>
을 Observable<ISource>
으로 평평하게하려고합니다. 위해편평한 관찰 할 수있는 배열의 항목을 관찰 할 수
그것을 얻을 수 있습니다 :
Type 'Observable<ISource[]>' is not assignable to type 'Observable<ISource>'.
어떤 아이디어 :
this.sources$ = this.store$
.select(fromRoot.getSourceEntities)
.map(sourceEntities => {
return sourceEntities
.filter((source:ISource) => source.id != null)
.map((source:ISource) => { return <ISource>{id: source.id}; });
})
.takeUntil(this.componentDestroyed$);
나는이 컴파일러 오류 님에게 메일을 받고 있어요?