Closed
Description
Code snippet below works in JS,
var Rx = require('....Rx.KitchenSink');
Rx.Observable.of(42).isEmpty().subscribe(console.log);
when it comes to TS
import * as Rx from '....Rx.KitchenSink';
Rx.Observable.of(42).isEmpty().subscribe(console.log);
compiler will complain due to Observable.of
does not returns extended type of operator instead of core.
error TS2339: Property 'isEmpty' does not exist on type 'Observable<number>'.
Metadata
Metadata
Assignees
Labels
No labels