From dfe7d3f89175cbbe4a28e50e1592d93f2f5e0952 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Sun, 11 Apr 2021 01:33:00 +0800 Subject: [PATCH] Fix plugin type in config/PrimeVue.d.ts vue 3 does not export a PluginFunction type. The install function should be of type PluginInstallFunction, but even that isn't exported. Instead we declare the type of the default export as Plugin. See https://github.com/vuejs/vue-next/blob/f0cf14bcc56c387372932e7d730f838ece17fe5f/packages/runtime-core/src/apiCreateApp.ts#L90-L96. Fixes #1164. --- src/components/config/PrimeVue.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/config/PrimeVue.d.ts b/src/components/config/PrimeVue.d.ts index 90a44c00e..e433d3fe4 100644 --- a/src/components/config/PrimeVue.d.ts +++ b/src/components/config/PrimeVue.d.ts @@ -1,4 +1,4 @@ -import Vue, { PluginFunction } from 'vue'; +import Vue, { Plugin } from 'vue'; interface PrimeVueConfiguration { ripple?: boolean; @@ -51,7 +51,8 @@ interface PrimeVueLocaleOptions { export declare function usePrimeVue(): PrimeVueConfiguration; -export const install: PluginFunction<{}>; +declare const plugin: Plugin; +export default plugin; declare module 'vue/types/vue' { interface Vue {