Type alias CompatVue

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

Type declaration

    • new (options?): LegacyPublicInstance
    • Parameters

      Returns LegacyPublicInstance

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

    Deprecated

    Vue 3 no longer supports extending constructors.

  • nextTick: typeof nextTick
  • observable: typeof reactive

    Deprecated

    use reactive instead.

  • version: string
  • compile:function
    • Parameters

      • template: string

      Returns RenderFunction

  • component:function
  • delete:function
    • Parameters

      • target: any
      • key: string | number | symbol

      Returns void

      Deprecated

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

  • directive:function
    • Type Parameters

      • T = any

      • V = any

      Parameters

      • name: string

      Returns Directive<T, V>

    • Type Parameters

      • T = any

      • V = any

      Parameters

      Returns CompatVue

  • filter:function
    • Parameters

      • name: string
      • Optional arg: any

      Returns null

      Deprecated

      filters have been removed from Vue 3.

  • mixin:function
    • Parameters

      Returns CompatVue

  • set:function
    • Parameters

      • target: any
      • key: string | number | symbol
      • value: any

      Returns void

      Deprecated

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

  • use:function
    • Parameters

      • plugin: Plugin<any[]>
      • Rest ...options: any[]

      Returns CompatVue

Deprecated

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'.

Generated using TypeDoc