Upon upgrading rxjs from version 6.6.6 to 7.4.0, an error surfaced in my combineLatest function.
searchQuery = new FormControl(null);
searchStatus = new FormControl<UserStatus>('ALL');
searchParams$ = combineLatest(
this.searchQuery.valueChanges.pipe(startWith(null), debounceTime(200)),
this.searchStatus.valueChanges.pipe(startWith('ALL')),
(query: string, status: string) => {
return { query, status };
}
);
Here is the error message:
No overload matches this call. The last overload gave the following error. Argument of type '(query: string, status: string) => { query: string; status: string; }' is not assignable to parameter of type 'SchedulerLike'.