@hpe/angular-toolkit
Version:
Hewlett-Packard Enterprise : Angular toolkit for rapid project development
12 lines (11 loc) • 461 B
TypeScript
import { Subscription } from "rxjs";
import { AppEvent, ErrorEvent, ErrorHandler, EventHandler } from "@hpe/angular-toolkit/model";
export declare class EventBusService {
private eventEmitterMap;
private errorEvents;
constructor();
subscribeToApp(eventCode: string, handler: EventHandler): Subscription;
emitToApp(event: AppEvent): void;
subscribeToError(handler: ErrorHandler): Subscription;
emitToError(event: ErrorEvent): void;
}