Skip to content

Commit 7ce0da4

Browse files
author
sqlProvider
committed
[Service.Interface] (fixed #9) solved type error for angular v5.x.x
2 parents 77b4b94 + 119dbf3 commit 7ce0da4

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v4.0.3
2+
- Fixed the issue that angular V5.x.x type error (#9).
3+
4+
## Next v4.0.2
5+
- Fixed the issue that created multiple pubsub services (#7).
6+
17
## Next v4.0.0
28
- Only version changed for anyone using Angular 4.0.0
39

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular2-pubsub",
3-
"version": "2.0.5",
3+
"version": "4.0.3",
44
"description": "Pub/Sub service for Angular 2",
55
"main": "./umd/angular2-pubsub.js",
66
"module": "./esm/src/index.js",
@@ -45,19 +45,19 @@
4545
},
4646
"homepage": "https://github.com/sqlProvider/angular2-pubsub#readme",
4747
"dependencies": {
48-
"@angular/common": "^2.4.7",
49-
"@angular/compiler": "^2.4.7",
50-
"@angular/core": "^2.4.7",
51-
"@angular/forms": "^2.4.7",
52-
"@angular/platform-browser": "^2.4.7",
48+
"@angular/common": "^4.0.0",
49+
"@angular/compiler": "^4.0.0",
50+
"@angular/core": "^4.0.0",
51+
"@angular/forms": "^4.0.0",
52+
"@angular/platform-browser": "^4.0.0",
5353
"jasmine-core": "^2.5.2",
5454
"rxjs": "^5.1.0",
5555
"ts-helpers": "^1.1.2",
5656
"zone.js": "^0.7.6"
5757
},
5858
"devDependencies": {
59-
"@angular/compiler-cli": "^2.4.7",
60-
"@angular/platform-browser-dynamic": "^2.4.7",
59+
"@angular/compiler-cli": "^4.0.0",
60+
"@angular/platform-browser-dynamic": "^4.0.0",
6161
"@types/es6-shim": "^0.31.32",
6262
"@types/jasmine": "^2.5.41",
6363
"@types/node": "^7.0.5",

src/angular2-pubsub.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class PubSubService implements IPubSubService {
4343
}
4444

4545
export interface IPubSubService {
46-
$pub(event: string, eventObject?: any);
46+
$pub(event: string, eventObject?: any): void;
4747
$sub(event: string): Observable<any>;
4848
$sub(event: string, callback: (value: any) => void): Subscription;
4949
$sub(event: string, callback: (value: any) => void, error: (error: any) => void): Subscription;

0 commit comments

Comments
 (0)