Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typeerrors when using typescript 2.4.0 #2716

Closed
veeramarni opened this issue Jul 1, 2017 · 3 comments
Closed

typeerrors when using typescript 2.4.0 #2716

veeramarni opened this issue Jul 1, 2017 · 3 comments

Comments

@veeramarni
Copy link

We are seeing typeerrors after upgrading typescript to 2.4.0 version in our project

RxJS version: 5.4.0

Code to reproduce:
When we upgrade the project to typescript@2.4.0 we getting these errors but we don't see them in version 2.3.0
Expected behavior:
No errors
Actual behavior:

[at-loader] ./node_modules/rxjs/Subject.d.ts:16:22
    TS2415: Class 'Subject<T>' incorrectly extends base class 'Observable<T>'.
  Types of property 'lift' are incompatible.
    Type '<R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'.
      Type 'Observable<T>' is not assignable to type 'Observable<R>'.
        Type 'T' is not assignable to type 'R'.

[at-loader] ./node_modules/rxjs/observable/dom/WebSocketSubject.d.ts:24:22
    TS2415: Class 'WebSocketSubject<T>' incorrectly extends base class 'AnonymousSubject<T>'.
  Types of property 'lift' are incompatible.
    Type '<R>(operator: Operator<T, R>) => WebSocketSubject<R>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<T>'.
      Type 'WebSocketSubject<R>' is not assignable to type 'Observable<T>'.
        Types of property 'operator' are incompatible.
          Type 'Operator<any, R>' is not assignable to type 'Operator<any, T>'.
            Type 'R' is not assignable to type 'T'.

Additional information:

@kwonoj
Copy link
Member

kwonoj commented Jul 1, 2017

dupe of #2699 , #2539, #2700 . #2701 #2702 #2703 #2704 #2705 #2706 #2707

@amitgaur208
Copy link

This problem is not solved using version change of typescript please help.

@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants