UNPKG

@hpe/angular-toolkit

Version:

Hewlett-Packard Enterprise : Angular toolkit for rapid project development

15 lines (14 loc) 681 B
import { OnDestroy } from "@angular/core"; import { Subscription } from "rxjs"; import { EventHandler, ErrorHandler, AppEvent, ErrorEvent } from "@hpe/angular-toolkit/model"; import { EventBusService } from "./eventbus-service"; export declare class AbstractSubscriber implements OnDestroy { private eventBusService; private subscriptions; constructor(eventBusService: EventBusService); ngOnDestroy(): void; protected subscribeToApp(eventCode: string, handler: EventHandler): Subscription; protected emitToApp(event: AppEvent): void; protected subscribeToError(handler: ErrorHandler): Subscription; protected emitToError(event: ErrorEvent): void; }