From 22a629f87eeb2dbfa762dc1f940ce290f5a05b37 Mon Sep 17 00:00:00 2001 From: liaomeirong Date: Tue, 20 Oct 2020 15:39:22 +0800 Subject: [PATCH] fix build fails when using Vue 3 on top of typescript --- types/element-ui.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/element-ui.d.ts b/types/element-ui.d.ts index 0b4b4fbfc5..e866249d00 100644 --- a/types/element-ui.d.ts +++ b/types/element-ui.d.ts @@ -1,4 +1,4 @@ -import Vue, { PluginObject } from 'vue' +import {App, PluginObject } from 'vue' import { ElementUIComponent, ElementUIComponentSize, ElementUIHorizontalAlignment } from './component' import { ElAlert } from './alert' @@ -95,7 +95,7 @@ export const version: string * Please do not invoke this method directly. * Call `Vue.use(ElementUI)` to install. */ -export function install (vue: typeof Vue, options: InstallationOptions): void +export function install (app: App, options: InstallationOptions): void /** ElementUI component common definition */ export type Component = ElementUIComponent