Skip to content

Commit 119dbf3

Browse files
author
sqlProvider
committed
[Service.Interface] added type info for $Pub event
1 parent fd1bbed commit 119dbf3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v4.0.3
2+
- Fixed the issue that created multiple pubsub services (#7).
3+
14
## Next v4.0.2
25
- Fixed the issue that created multiple pubsub services (#7).
36

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)