apps/rxjs.dev/content/deprecations/resultSelector.md
Some operator supported a resultSelector argument that acted as mapping function on the result of that operator.
The same behavior can be reproduced with the map operator, therefore this argument became deprecated.
There were two reasons for actually deprecating those parameters:
Instead of using the resultSelector Argument, you can leverage the map operator on the inner Observable:
import { fromEvent, switchMap, interval, map } from 'rxjs';
// deprecated
fromEvent(document, 'click').pipe(
switchMap((x) => interval(1000), (_, x) => x + 1)
);
// suggested change
fromEvent(document, 'click').pipe(
switchMap((x) => interval(1000).pipe(map((x) => x + 1)))
);