alerts.d.ts 345 B

12345678910
  1. export declare type AlertType = 'info' | 'warning' | 'error';
  2. export interface Alert {
  3. type: AlertType;
  4. name: string;
  5. msg: string;
  6. }
  7. declare function registerAlerts(alerts: Alert[]): void;
  8. declare function hasAlert(name: string): boolean;
  9. declare function displayAlerts(): string;
  10. export { registerAlerts, hasAlert, displayAlerts };