angular9-notifications-gpu
Version:
> A light and easy to use notifications library for Angular 2. ~~It features both regular page notifications (toasts) and push notifications.~~
22 lines (21 loc) • 1.28 kB
TypeScript
import { Subject } from 'rxjs';
import { NotificationEvent } from '../interfaces/notification-event.type';
import { Notification } from '../interfaces/notification.type';
import { Icons } from '../interfaces/icons';
import { NotificationType } from '../enums/notification-type.enum';
export declare class NotificationsService {
globalOptions: any;
constructor(globalOptions: any);
emitter: Subject<NotificationEvent>;
icons: Icons;
set(notification: Notification, to: boolean): Notification;
success(title?: any, content?: any, override?: any, context?: any): Notification;
error(title?: any, content?: any, override?: any, context?: any): Notification;
alert(title?: any, content?: any, override?: any, context?: any): Notification;
info(title?: any, content?: any, override?: any, context?: any): Notification;
warn(title?: any, content?: any, override?: any, context?: any): Notification;
bare(title?: any, content?: any, override?: any, context?: any): Notification;
create(title?: any, content?: any, type?: NotificationType, override?: any, context?: any): Notification;
html(html: any, type?: NotificationType, override?: any, icon?: string, context?: any): Notification;
remove(id?: string): void;
}