tdesign-react
Version:
TDesign Component for React
13 lines (12 loc) • 725 B
TypeScript
import { NotificationCloseAllMethod, NotificationCloseMethod, NotificationErrorMethod, NotificationInfoMethod, NotificationInstance, NotificationOptions, NotificationSuccessMethod, NotificationThemeList, NotificationWarningMethod, NotificationConfigMethod } from './type';
export interface Notification {
(theme: NotificationThemeList, options: NotificationOptions): Promise<NotificationInstance>;
info: NotificationInfoMethod;
success: NotificationSuccessMethod;
warning: NotificationWarningMethod;
error: NotificationErrorMethod;
closeAll: NotificationCloseAllMethod;
close: NotificationCloseMethod;
config: NotificationConfigMethod;
}
export declare const NotificationPlugin: Notification;