Skip to content

Commit 24c6ac9

Browse files
committed
fix: add type
1 parent 304b78b commit 24c6ac9

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,12 @@ The slices are defined in the ChartSlices interface. The interface for the chart
4545

4646
To enable styling the optional 'color' property of the ChartSlice can be used to provide a custom color. It needs to be in Css color format.
4747

48+
## Token Services
49+
The services/interceptors for the Jwt token handling are now included.
50+
51+
To use the token handling this module has to be imported: [NgxServiceModule](https://github.com/Angular2Guy/ngx-simple-charts/blob/master/projects/ngx-simple-charts/base-service/src/lib/ngx-service.module.ts)
52+
53+
Examples howto use it can be found in the [AngularAndSpring](https://github.com/Angular2Guy/AngularAndSpring) and [AngularPortfolioMgr](https://github.com/Angular2Guy/AngularPortfolioMgr) projects.
54+
4855
## Some time in the future
4956
For more features pull requests are welcome.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-simple-charts",
3-
"version": "14.3.0",
3+
"version": "14.3.1",
44
"license": "Apache License Version 2.0",
55
"scripts": {
66
"ng": "ng",

projects/ngx-simple-charts/base-service/src/lib/sc-service/token.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class TokenService {
3939
private readonly CACHE_SIZE = 1;
4040
private readonly REFRESH_INTERVAL = 45000; //45 sec
4141
private myToken!: string;
42-
private myUserId!: number;
42+
private myUserId!: number | string;
4343
private myTokenSubscription!: Subscription;
4444
private stopTimer!: Subject<boolean>;
4545
public secUntilNextLogin = 0;
@@ -125,11 +125,11 @@ export class TokenService {
125125
}
126126
}
127127

128-
public get userId(): number {
128+
public get userId(): number | string {
129129
return this.myUserId;
130130
}
131131

132-
public set userId(userId: number) {
132+
public set userId(userId: number | string) {
133133
this.myUserId = userId;
134134
}
135135
}

projects/ngx-simple-charts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-simple-charts",
3-
"version": "14.3.0",
3+
"version": "14.3.1",
44
"license": "Apache License Version 2.0",
55
"peerDependencies": {
66
"@angular/common": "^14.0.0",

0 commit comments

Comments
 (0)