@nova-ui/bits
Version:
SolarWinds Nova Framework
25 lines (24 loc) • 798 B
TypeScript
import { Subscription } from "rxjs";
import { INotificationService } from "./public-api";
import * as i0 from "@angular/core";
export type NotificationHandler = (args: any) => void;
/**
* @ngdoc service
*
* @name nui.services:nuiNotificationService
*
* @description
* Service that provides generic notifications to consumers that subscribe.
*/
/**
* @ignore
*/
export declare class NotificationService implements INotificationService {
private channels;
private ensureChannel;
subscribe(channelId: string, action: NotificationHandler): Subscription;
post(channelId: string, args: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
}
export default NotificationService;