diff --git a/types/component.d.ts b/types/component.d.ts index e582b6e21..61bf6bc06 100644 --- a/types/component.d.ts +++ b/types/component.d.ts @@ -3,7 +3,7 @@ import Vue from 'vue' /** ElementUI component common definition */ export declare class ElementUIComponent extends Vue { /** Install component into Vue */ - static install (vue: typeof Vue) + static install (vue: typeof Vue): void } /** Component size definition for button, input, etc */ diff --git a/types/index.d.ts b/types/index.d.ts index 32affc60b..6f1c51ab7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -77,7 +77,7 @@ declare namespace ElementUI { * Please do not invoke this method directly. * Call `Vue.use(ElementUI)` to install. */ - export function install (vue: typeof Vue, options: ElementUI.InstallationOptions) + export function install (vue: typeof Vue, options: ElementUI.InstallationOptions): void /** ElementUI component common definition */ export type Component = ElementUIComponent