When I run tslint, I am encountering an error that was not present before. It reads as follows:
ERROR: C:/...path..to../observable-debug-operator.ts[27, 13]: Shadowed name: 'Observable'
I recently implemented a debug operator to my Observable by following this tutorial. The debug operator is functioning correctly, but I keep receiving this lint error. Oddly enough, I have been using the debug operator for some time without experiencing any lint errors, so I'm unsure why it's happening now.
The issue seems to be with the code on line 27 where I extended the type definition with the debug method:
declare module 'rxjs/Observable' {
interface Observable<T> { // line 27
debug: (...any) => Observable<T>;
}
}
If anyone has insights on how I can resolve this lint error, I would greatly appreciate it. Thank you!