fix(core): update

This commit is contained in:
2019-11-10 16:55:17 +01:00
parent bd4897f392
commit b6392ec6ba
4 changed files with 21 additions and 11 deletions

View File

@ -2,7 +2,22 @@ import * as plugins from './smartuniverse.plugins';
/**
* broadcasts an event to multiple channels
* also handles subsription
*/
export class BroadcastEvent<T> {
fire() {}
export class BroadcastEvent<T extends plugins.typedrequestInterfaces.IBroadCastEvent<any>> {
public eventSubject = new plugins.smartrx.rxjs.Subject<T['payload']>();
constructor() {
};
public fire(eventArg: T['payload']) {
};
public subscribe(funcArg: (nextArg: T['payload']) => void): plugins.smartrx.rxjs.Subscription {
return this.eventSubject.subscribe(funcArg);
}
}

View File

@ -1,5 +0,0 @@
import * as plugins from './smartuniverse.plugins';
export class BroadcastSubscription {
}