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
f0cf14bcc5/packages/runtime-core/src/apiCreateApp.ts (L90-L96).

Fixes #1164.
pull/1165/head
Zhiming Wang 2021-04-11 01:33:00 +08:00
parent e769495181
commit dfe7d3f891
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import Vue, { PluginFunction } from 'vue'; import Vue, { Plugin } from 'vue';
interface PrimeVueConfiguration { interface PrimeVueConfiguration {
ripple?: boolean; ripple?: boolean;
@ -51,7 +51,8 @@ interface PrimeVueLocaleOptions {
export declare function usePrimeVue(): PrimeVueConfiguration; export declare function usePrimeVue(): PrimeVueConfiguration;
export const install: PluginFunction<{}>; declare const plugin: Plugin;
export default plugin;
declare module 'vue/types/vue' { declare module 'vue/types/vue' {
interface Vue { interface Vue {