CompatVue: Pick<App, "version" | "component" | "directive"> & {
    config: AppConfig & LegacyConfig;
    configureCompat: typeof configureCompat;
    extend: ((options?: ComponentOptions) => CompatVue);
    nextTick: typeof nextTick;
    observable: typeof reactive;
    version: string;
    compile(template: string): RenderFunction;
    component(name: string): undefined | Component<any, any, any, ComputedOptions, MethodOptions, {}, any>;
    component(name: string, component: Component<any, any, any, ComputedOptions, MethodOptions, {}, any>): CompatVue;
    delete(target: any, key: PropertyKey): void;
    directive<T, V>(name: string): undefined | vue.Directive<T, V>;
    directive<T, V>(name: string, directive: vue.Directive<T, V>): CompatVue;
    filter(name: string, arg?: any): null;
    mixin(mixin: ComponentOptions<{}, any, any, any, any, any, any, any, any>): CompatVue;
    set(target: any, key: PropertyKey, value: any): void;
    use<Options>(plugin: vue.Plugin<Options>, ...options: Options): CompatVue;
    use<Options>(plugin: vue.Plugin<Options>, options: Options): CompatVue;
    new (options?: ComponentOptions<{}, any, any, any, any, any, any, any, any>): LegacyPublicInstance;
}

Type declaration

    • new (options?): LegacyPublicInstance
    • Parameters

      Returns LegacyPublicInstance

  • config: AppConfig & LegacyConfig
  • configureCompat: typeof configureCompat
  • extend: ((options?: ComponentOptions) => CompatVue)

    Vue 3 no longer supports extending constructors.

  • nextTick: typeof nextTick
  • observable: typeof reactive

    use reactive instead.

  • version: string
  • compile:function
    • Parameters

      • template: string

      Returns RenderFunction

  • component:function
  • delete:function
    • Parameters

      • target: any
      • key: PropertyKey

      Returns void

      Vue 3 no longer needs delete() for property deletions.

  • directive:function
    • Type Parameters

      • T = any
      • V = any

      Parameters

      • name: string

      Returns undefined | vue.Directive<T, V>

    • Type Parameters

      • T = any
      • V = any

      Parameters

      Returns CompatVue

  • filter:function
    • Parameters

      • name: string
      • Optionalarg: any

      Returns null

      filters have been removed from Vue 3.

  • mixin:function
    • Parameters

      Returns CompatVue

  • set:function
    • Parameters

      • target: any
      • key: PropertyKey
      • value: any

      Returns void

      Vue 3 no longer needs set() for adding new properties.

  • use:function

the default Vue export has been removed in Vue 3. The type for the default export is provided only for migration purposes. Please use named imports instead - e.g. import { createApp } from 'vue'.