From 9b53839d4931030fab64bda6f95a7b5de096877b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Wed, 12 Feb 2020 17:54:48 +0800 Subject: [PATCH] types(Dialog): fix Dialog.Component typing (#5646) --- types/component.d.ts | 1 + types/dialog.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/component.d.ts b/types/component.d.ts index 62669282d..05a459d0a 100644 --- a/types/component.d.ts +++ b/types/component.d.ts @@ -2,5 +2,6 @@ import Vue from 'vue'; export class VanComponent { static name: string; + static install(vue: typeof Vue): void; } diff --git a/types/dialog.d.ts b/types/dialog.d.ts index 22d114632..b7a81ec5b 100644 --- a/types/dialog.d.ts +++ b/types/dialog.d.ts @@ -34,7 +34,7 @@ export interface Dialog { install(): void; setDefaultOptions(options: DialogOptions): void; resetDefaultOptions(): void; - Component: VanComponent; + Component: typeof VanComponent; } declare module 'vue/types/vue' {