moribvndvs / ng2-idle

Responding to idle users in Angular (not AngularJS) applications.
https://moribvndvs.github.io/ng2-idle
Apache License 2.0
315 stars 128 forks source link

Class Subject<T> Incorrectly Extends Subject<T> #63

Open harrycnystrom opened 6 years ago

harrycnystrom commented 6 years ago

I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/HackedByChinese/ng2-idle/blob/master/CONTRIBUTING.md#getting-help

Current behavior When I try to build my Angular 4 application I get the following error: E:/Projects/INSTINCT/AnalystDashboard/src/Proxy_Reporting/node_modules/ng2-idle/node_modules/rxjs/Subject.d.ts(16,22): error TS2415: Class 'Subject' incorrectly extends base class 'Observable'. Types of property 'lift' are incompatible. Type '<T, R>(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'. Type 'Observable' is not assignable to type 'Observable'. Type 'T' is not assignable to type 'R'.

Expected behavior Expect the above issue not to occur

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior? Proper integration of this package into my application.

Please tell us about your environment: Using Windows 7, Visual Studio 2015, npm 3.10.8