Yeah, it’s deprecated — along with a number of other operators that have static, factory-function equivalents.

You probably don’t need to write your own, though, as pipeable operators are just functions that take an observable and return an observable. So you can use the static combineLatest with pipe pretty easily, like this:

import { combineLatest } from "rxjs";
const c = a.pipe(s => combineLatest(s, b));

Although, you’d only do this if you were using it in conjunction with other pipeable operators.

RxJS core team member; front-end developer; mentor; speaker; open-source contributor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store