私はコンパイルするとき、私はRxJS宣言ファイルに次のコンパイラエラーを取得する:ここで何が起こっているTypeScript 2.4とRxJS 5.xの「Subject is Observable extends Observable」エラーを回避するにはどうすればよいですか?
node_modules/rxjs/Subject.d.ts(16,22): error 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'.
、そしてどのように私は2.3またはそれ以前を活字体にダウングレードすることなく、これを回避できますか?
ここでは "--noStrictGenericChecks"を使用しますか? – RemyaJ
'tsconfig.json'の' compilerOptions'です。ダッシュを削除して「真」に設定してください。 –
ありがとう、それは働いた。 :) – RemyaJ