ngx-toast-notifications
Version:
Toast notifications for Angular applications
13 lines (12 loc) • 611 B
TypeScript
import { InjectionToken, Type } from '@angular/core';
export declare const TOAST_NOTIFICATIONS_CONFIG: InjectionToken<ToastNotificationsConfig>;
export declare type ToastType = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
export declare type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
export interface ToastNotificationsConfig {
position?: ToastPosition;
autoClose?: boolean;
duration?: number;
type?: ToastType;
component?: Type<any>;
preventDuplicates?: boolean;
}