rxjs icon indicating copy to clipboard operation
rxjs copied to clipboard

errors seen when running typedoc

Open DrewLandgrave opened this issue 9 years ago • 2 comments

RxJS version: 5.4.0

Code to reproduce: source code

Expected behavior: no errors when linting

Actual behavior:

Error: /foo/node_modules/rxjs/Subject.d.ts(15)
 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'.
Error: /foo/node_modules/rxjs/observable/dom/WebSocketSubject.d.ts(23)
 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'.```

DrewLandgrave avatar Aug 21 '17 14:08 DrewLandgrave

Please use latest version. https://github.com/ReactiveX/rxjs/issues/2705#issuecomment-322170953

kwonoj avatar Aug 21 '17 15:08 kwonoj

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[bot] avatar Jun 06 '18 08:06 lock[bot]