UNPKG

ng-zorro-antd-yj

Version:

An enterprise-class UI components based on Ant Design and Angular

26 lines (25 loc) 730 B
import { TemplateRef } from '@angular/core'; import { Subject } from 'rxjs'; export declare type NzMessageType = 'success' | 'info' | 'warning' | 'error' | 'loading'; export interface NzMessageDataOptions { nzDuration?: number; nzAnimate?: boolean; nzPauseOnHover?: boolean; } /** * Message data for terminal users. */ export interface NzMessageData { type?: NzMessageType | string; content?: string | TemplateRef<void>; } /** * Filled version of NzMessageData (includes more private properties). */ export interface NzMessageDataFilled extends NzMessageData { messageId: string; createdAt: Date; options?: NzMessageDataOptions; state?: 'enter' | 'leave'; onClose?: Subject<boolean>; }