Hi 
Bei
gibt es ein Problem:
TS2345: Argument of type 'OperatorFunction<Blub, Course[]>' is not assignable to parameter of type 'OperatorFunction<Course[], Course[]>'. Type 'Blub' is missing the following properties from type 'Course[]': length, pop, push, concat, and 26 more.
Aber ich verstehe nicht warum.
Die Response sieht so aus:
Javascript:
type Blub = {
payload: Course[]
}
const http$: Observable<Course[]> = createHttpObservable('/api/courses');
const courses$ = http$.pipe(
map((json: Blub) => Object.values(json.payload))
);
Bei
Code:
json: Blub
TS2345: Argument of type 'OperatorFunction<Blub, Course[]>' is not assignable to parameter of type 'OperatorFunction<Course[], Course[]>'. Type 'Blub' is missing the following properties from type 'Course[]': length, pop, push, concat, and 26 more.
Aber ich verstehe nicht warum.
Die Response sieht so aus:
JSON:
{"payload":[{"id":0,"description":"RxJs In Practice Course","iconUrl":"xyz.png","courseListIcon":"xyz.png","longDescription":"Understand the RxJs Observable pattern, learn the RxJs Operators via practical examples","category":"BEGINNER","lessonsCount":10},...