ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
31 lines (30 loc) • 1.01 kB
TypeScript
/**
* @license
* Copyright Alibaba.com All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
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;
}
export interface NzMessageData {
type?: NzMessageType | string;
content?: string | TemplateRef<void>;
messageId?: string;
createdAt?: Date;
options?: NzMessageDataOptions;
state?: 'enter' | 'leave';
onClose?: Subject<boolean>;
}
export declare type NzMessageRef = Pick<Required<NzMessageData>, 'onClose' | 'messageId'>;
/**
* @deprecated use `NzMessageRef` instead
* @breaking-change 10.0.0
*/
export declare type NzMessageDataFilled = NzMessageRef;