UNPKG

tdesign-vue-next

Version:
18 lines (17 loc) 731 B
import { Plugin, AppContext } from 'vue'; import { MessageMethod, MessageInfoMethod, MessageErrorMethod, MessageWarningMethod, MessageSuccessMethod, MessageLoadingMethod, MessageQuestionMethod, MessageCloseMethod, MessageCloseAllMethod } from './type'; interface ExtraApi { info: MessageInfoMethod; success: MessageSuccessMethod; warning: MessageWarningMethod; error: MessageErrorMethod; question: MessageQuestionMethod; loading: MessageLoadingMethod; close: MessageCloseMethod; closeAll: MessageCloseAllMethod; } export type MessagePluginType = Plugin & ExtraApi & MessageMethod; export declare const MessagePlugin: MessagePluginType & { _context?: AppContext; }; export default MessagePlugin;