import Vue from 'vue' import { Message, MessageBox } from 'element-ui' import { ElMessageBoxOptions } from 'element-ui/types/message-box' declare module 'vue/types/vue' { interface VueConstructor { prototype: Vue & { $http: { get: jest.Mock post: jest.Mock put: jest.Mock del: jest.Mock } $message: { info: jest.Mock, Parameters> success: jest.Mock, Parameters> warning: jest.Mock, Parameters> error: jest.Mock, Parameters> } $msgbox: jest.Mock, [ElMessageBoxOptions]> $alert: jest.Mock, [string, ElMessageBoxOptions]> $confirm: jest.Mock, [string, ElMessageBoxOptions]> $prompt: jest.Mock, [string, ElMessageBoxOptions]> } } }