types: reduce any (#8256)

This commit is contained in:
neverland
2021-03-03 17:46:00 +08:00
committed by GitHub
parent d606b32c64
commit 1dc1b708f0
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { App, CSSProperties, TeleportProps } from 'vue';
import { App, Plugin, CSSProperties, TeleportProps } from 'vue';
import { inBrowser, ComponentInstance } from '../utils';
import { Interceptor } from '../utils/interceptor';
import { mountComponent, usePopupState } from '../utils/mount-component';
@@ -120,7 +120,7 @@ Dialog.resetDefaultOptions = () => {
};
Dialog.install = (app: App) => {
app.use(VanDialog as any);
app.use((VanDialog as unknown) as Plugin);
app.config.globalProperties.$dialog = Dialog;
};