xdesign-vue-next
Version:
XDesign Component for vue-next
15 lines (14 loc) • 678 B
TypeScript
import { Plugin } from 'vue';
import { NotificationMethod, NotificationInfoMethod, NotificationWarningMethod, NotificationErrorMethod, NotificationSuccessMethod, NotificationCloseMethod, NotificationCloseAllMethod } from './type';
import './style';
interface ExtraApi {
info: NotificationInfoMethod;
success: NotificationSuccessMethod;
warning: NotificationWarningMethod;
error: NotificationErrorMethod;
close: NotificationCloseMethod;
closeAll: NotificationCloseAllMethod;
}
export declare type NotificationPluginType = Plugin & ExtraApi & NotificationMethod;
declare const NotificationPlugin: NotificationPluginType;
export default NotificationPlugin;