From e845f17db26b2bc1ff629fdb288704e0213e6731 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 3 Nov 2021 15:50:45 +0100 Subject: [PATCH] feat(types): better compatibility --- lib/v2/index.d.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/v2/index.d.ts b/lib/v2/index.d.ts index f1f3ac4..e94b2b3 100644 --- a/lib/v2/index.d.ts +++ b/lib/v2/index.d.ts @@ -1,15 +1,25 @@ import Vue from 'vue' +import type { PluginFunction, PluginObject } from 'vue' declare const isVue2: boolean declare const isVue3: boolean declare const Vue2: Vue | undefined declare const version: string declare const install: (vue?: Vue) => void -/** +/** * @deprecated To avoid bringing in all the tree-shakable modules, this API has been deprecated. Use `Vue2` or named exports instead. * Refer to https://github.com/vueuse/vue-demi/issues/41 */ declare const V: Vue +/** + * DebuggerEvent is a Vue 3 development only feature. This type cannot exist in Vue 2. + */ +export declare type DebuggerEvent = never + +// accept no generic because Vue 3 doesn't accept any +// https://github.com/vuejs/vue-next/pull/2758/ +export declare type Plugin = PluginObject | PluginFunction +export type { VNode } from 'vue' export * from '@vue/composition-api' export { V as Vue,