I try to use combineLatest
:
import { combineLatest } from 'rxjs/Observable';
but I get the warning
combineLatest is deprecated: Deprecated in favor of static combineLatest.
If I follow the solution provided in the RxJS v5.x to v6 Update Guide as it is stated here and I write
import { combineLatest } from 'rxjs';
then I get the tslint message:
This import is blacklisted, import a submodule instead
which seems a bit a snake biting its own tail...
If I use
import { combineLatest } from 'rxjs/internal/observable/combineLatest';
then it works without warning messages, but as far as I know, it's not recommended to import internal packages (correct me if I'm wrong).
Disabling tslint messages doesn't seem acceptable to me.
Example:
this.Subscription = combineLatest([a,b])
.pipe(
map( (...) )
).subscribe( (...) );
Which is the appropriate solution? Thanks.