You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
997 B

2 months ago
  1. import Vue from 'vue'
  2. import type { PluginFunction, PluginObject } from 'vue'
  3. declare const isVue2: boolean
  4. declare const isVue3: boolean
  5. declare const Vue2: typeof Vue | undefined
  6. declare const version: string
  7. declare const install: (vue?: typeof Vue) => void
  8. /**
  9. * @deprecated To avoid bringing in all the tree-shakable modules, this API has been deprecated. Use `Vue2` or named exports instead.
  10. * Refer to https://github.com/vueuse/vue-demi/issues/41
  11. */
  12. declare const V: typeof Vue
  13. /**
  14. * DebuggerEvent is a Vue 3 development only feature. This type cannot exist in Vue 2.
  15. */
  16. export declare type DebuggerEvent = never
  17. // accept no generic because Vue 3 doesn't accept any
  18. // https://github.com/vuejs/vue-next/pull/2758/
  19. export declare type Plugin = PluginObject<any> | PluginFunction<any>
  20. export type { VNode } from 'vue'
  21. export * from '@vue/composition-api'
  22. export {
  23. V as Vue,
  24. Vue2,
  25. isVue2,
  26. isVue3,
  27. version,
  28. install,
  29. }
  30. export declare function hasInjectionContext(): boolean