rxjs/Subject.d.ts error : Class 'Subject' incorrectly extends base class 'Observable'

前端 未结 19 2157
一向
一向 2020-12-01 09:55

I extracted sample template code from this tutorial and did below two steps to get started -

  1. npm install // worked fine and created node_modules folder
19条回答
  •  囚心锁ツ
    2020-12-01 10:40

    Please change the following line of Subject.d.ts file:

    lift(operator: Operator): Observable;
    

    to:

    lift(operator: Operator): Observable;
    

    The return type should probably be Observable rather than Observable

提交回复
热议问题