jeudi 17 janvier 2019

Observable "source is deprecated" error on npm lint

I get "source is deprecated: This is an internal implementation detail, do not use." when I run the command npm lint on my code below:

 set stream(source: Observable<any>) {
    this.source = source;
  }

If I take it out, it satisfies the lint, but it breaks my unit tests. Why is this?

Aucun commentaire:

Enregistrer un commentaire