Skip to content

Commit cfc1fde

Browse files
authored
Rxjs6 upgrade (#7)
* Versions update rxjs 6 and rxjs compat * Latest ng-packagr v3.0.0
1 parent e5658d1 commit cfc1fde

File tree

5 files changed

+335
-204
lines changed

5 files changed

+335
-204
lines changed

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@angular/core": ">=5.2.0",
1111
"@angular/common": ">=5.2.0",
1212
"@angular/router": ">=5.2.0",
13-
"rxjs": ">=5.5.6"
13+
"rxjs": ">=6.2.0"
1414
},
1515
"keywords": [
1616
"angular",

lib/src/directives/router-link-delay.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { Directive, Input, HostListener, OnDestroy } from '@angular/core';
22
import { RouterLinkWithHref, Router, ActivatedRoute } from '@angular/router';
33
import { LocationStrategy } from '@angular/common';
4-
import { ISubscription } from 'rxjs/Subscription';
5-
import { timer } from 'rxjs/observable/timer';
6-
4+
import { timer, SubscriptionLike } from 'rxjs';
75
/**
86
* Extends {@link RouterLinkWithHref}
97
* @see https://github.com/angular/angular/blob/master/packages/router/src/directives/router_link.ts
@@ -20,7 +18,7 @@ export class RouterLinkWithHrefDelay extends RouterLinkWithHref implements OnDes
2018
this.routerLink = commands;
2119
}
2220

23-
private timerSubscription: ISubscription;
21+
private timerSubscription: SubscriptionLike;
2422

2523
constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy) {
2624
super(router, route, locationStrategy);

0 commit comments

Comments
 (0)