Skip to content

Commit 9e981c7

Browse files
authored
feat(types): better compatibility (#115)
1 parent 0e6b88e commit 9e981c7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/v2/index.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
import Vue from 'vue'
2+
import type { PluginFunction, PluginObject } from 'vue'
23
declare const isVue2: boolean
34
declare const isVue3: boolean
45
declare const Vue2: Vue | undefined
56
declare const version: string
67
declare const install: (vue?: Vue) => void
7-
/**
8+
/**
89
* @deprecated To avoid bringing in all the tree-shakable modules, this API has been deprecated. Use `Vue2` or named exports instead.
910
* Refer to https://github.com/vueuse/vue-demi/issues/41
1011
*/
1112
declare const V: Vue
1213

14+
/**
15+
* DebuggerEvent is a Vue 3 development only feature. This type cannot exist in Vue 2.
16+
*/
17+
export declare type DebuggerEvent = never
18+
19+
// accept no generic because Vue 3 doesn't accept any
20+
// https://github.com/vuejs/vue-next/pull/2758/
21+
export declare type Plugin = PluginObject<any> | PluginFunction<any>
22+
export type { VNode } from 'vue'
1323
export * from '@vue/composition-api'
1424
export {
1525
V as Vue,

0 commit comments

Comments
 (0)