As you’ve used it, combineLatest isn’t really an operator; it’s an observable creator. And it can be imported directly, like this:

import { combineLatest } from "rxjs/observable/combineLatest";
const c = combineLatest(a, b);

Also, if a is an observable, there is already a combineLatest lettable operator that you could use like this:

import { combineLatest } from "rxjs/operators/combineLatest";
const c = a.pipe(combineLatest(b));

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