Skip to content

Type definition for extended operator is not published #642

Description

@kwonoj

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>'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions