Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Type aliases

AsyncComponentLoader

AsyncComponentLoader<T>: () => Promise<AsyncComponentResolveResult<T>>

Type parameters

  • T = any

Type declaration

    • (): Promise<AsyncComponentResolveResult<T>>
    • Returns Promise<AsyncComponentResolveResult<T>>

CompatVue

CompatVue: Pick<App, "version" | "component" | "directive"> & { config: AppConfig & LegacyConfig; configureCompat: typeof configureCompat; nextTick: typeof __type; observable: typeof reactive; version: string; compile: any; component: any; delete: any; directive: any; extend: any; filter: any; mixin: any; set: any; use: any }
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'.

Component

Component<Props, RawBindings, D, C, M>: ConcreteComponent<Props, RawBindings, D, C, M> | ComponentPublicInstanceConstructor<Props>

A type used in public APIs where a component type is expected. The constructor type is an artificial type returned by defineComponent().

Type parameters

ComponentObjectPropsOptions

ComponentObjectPropsOptions<P>: { [ K in keyof P]: Prop<P[K]> | null }

Type parameters

  • P = Data

ComponentOptions

ComponentOptions<Props, RawBindings, D, C, M, Mixin, Extends, E>: ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E> & ThisType<CreateComponentPublicInstance<{}, RawBindings, D, C, M, Mixin, Extends, E, Readonly<Props>>>

Type parameters

ComponentOptionsMixin

ComponentOptionsMixin: ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>

ComponentOptionsWithArrayProps

ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE, Props>: ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props: PropNames[] } & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E>>

Type parameters

ComponentOptionsWithObjectProps

ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, Props, Defaults>: ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults> & { props: PropsOptions & ThisType<void> } & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, Defaults, false>>

Type parameters

ComponentOptionsWithoutProps

ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, PE>: ComponentOptionsBase<PE, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props?: undefined } & ThisType<CreateComponentPublicInstance<PE, RawBindings, D, C, M, Mixin, Extends, E>>

Type parameters

ComponentPropsOptions

ComponentPropsOptions<P>: ComponentObjectPropsOptions<P> | string[]

Type parameters

  • P = Data

ComponentPublicInstance

ComponentPublicInstance<P, B, D, C, M, E, PublicProps, Defaults, MakeDefaultsOptional, Options>: { $: ComponentInternalInstance; $attrs: Data; $data: D; $el: any; $emit: EmitFn<E>; $nextTick: typeof __type; $options: Options & MergedComponentOptionsOverride; $parent: ComponentPublicInstance | null; $props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<P & PublicProps, keyof Defaults> : P & PublicProps; $refs: Data; $root: ComponentPublicInstance | null; $slots: Slots; $forceUpdate: any; $watch: any } & P & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties

Type parameters

ComputedOptions

ComputedOptions: Record<string, ComputedGetter<any> | WritableComputedOptions<any>>

ConcreteComponent

ConcreteComponent<Props, RawBindings, D, C, M>: ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, any>

Concrete component type matches its actual value: it's either an options object, or a function. Use this where the code expects to work with actual values, e.g. checking if its a function or not. This is mostly for internal implementation code.

Type parameters

CreateAppFunction

CreateAppFunction<HostElement>: (rootComponent: Component, rootProps?: Data | null) => App<HostElement>

Type parameters

  • HostElement

Type declaration

    • (rootComponent: Component, rootProps?: Data | null): App<HostElement>
    • Parameters

      • rootComponent: Component
      • Optional rootProps: Data | null

      Returns App<HostElement>

CreateComponentPublicInstance

CreateComponentPublicInstance<P, B, D, C, M, Mixin, Extends, E, PublicProps, Defaults, MakeDefaultsOptional, PublicMixin, PublicP, PublicB, PublicD, PublicC, PublicM, PublicDefaults>: ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults>>

Type parameters

DebuggerEvent

DebuggerEvent: { effect: ReactiveEffect } & DebuggerEventExtraInfo

DeepReadonly

DeepReadonly<T>: T extends Builtin ? T : T extends Map<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends WeakMap<infer K, infer V> ? WeakMap<DeepReadonly<K>, DeepReadonly<V>> : T extends Set<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends WeakSet<infer U> ? WeakSet<DeepReadonly<U>> : T extends Promise<infer U> ? Promise<DeepReadonly<U>> : T extends Ref<infer U> ? Ref<DeepReadonly<U>> : T extends {} ? { readonly [ K in keyof T]: DeepReadonly<T[K]> } : Readonly<T>

Type parameters

  • T

DefineComponent

DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults>: ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, PP & Props, Defaults, true> & Props> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults> & PP

Type parameters

Directive

Directive<T, V>: ObjectDirective<T, V> | FunctionDirective<T, V>

Type parameters

  • T = any

  • V = any

DirectiveArguments

DirectiveArguments: ([vue.Directive] | [vue.Directive, any] | [vue.Directive, any, string] | [vue.Directive, any, string, DirectiveModifiers])[]

DirectiveHook

DirectiveHook<T, Prev, V>: (el: T, binding: DirectiveBinding<V>, vnode: VNode<any, T>, prevVNode: Prev) => void

Type parameters

  • T = any

  • Prev = VNode<any, T> | null

  • V = any

Type declaration

EmitsOptions

EmitsOptions: ObjectEmitsOptions | string[]

ExtractDefaultPropTypes

ExtractDefaultPropTypes<O>: O extends object ? { [ K in DefaultKeys<O>]: InferPropType<O[K]> } : {}

Type parameters

  • O

ExtractPropTypes

ExtractPropTypes<O>: O extends object ? { [ K in keyof O]?: unknown } & { [ K in RequiredKeys<O>]: InferPropType<O[K]> } & { [ K in OptionalKeys<O>]?: InferPropType<O[K]> } : { [ K in string]: any }

Type parameters

  • O

FunctionDirective

FunctionDirective<T, V>: DirectiveHook<T, any, V>

Type parameters

  • T = any

  • V = any

LegacyConfig

LegacyConfig: { devtools?: boolean; ignoredElements?: (string | RegExp)[]; keyCodes?: Record<string, number | number[]>; productionTip?: boolean; silent?: boolean }

Type declaration

ObjectEmitsOptions

ObjectEmitsOptions: Record<string, ((...args: any[]) => any) | null>

OptionMergeFunction

OptionMergeFunction: (to: unknown, from: unknown) => any

Type declaration

    • (to: unknown, from: unknown): any
    • Parameters

      • to: unknown
      • from: unknown

      Returns any

Plugin

Plugin: (PluginInstallFunction & { install?: PluginInstallFunction }) | { install: PluginInstallFunction }

Prop

Prop<T, D>: PropOptions<T, D> | PropType<T>

Type parameters

  • T

  • D = T

PropType

PropType<T>: PropConstructor<T> | PropConstructor<T>[]

Type parameters

  • T

RenderFunction

RenderFunction: () => VNodeChild

Type declaration

RootHydrateFunction

RootHydrateFunction: (vnode: VNode<Node, Element>, container: Element | ShadowRoot) => void

Type declaration

    • (vnode: VNode<Node, Element>, container: Element | ShadowRoot): void
    • Parameters

      • vnode: VNode<Node, Element>
      • container: Element | ShadowRoot

      Returns void

RootRenderFunction

RootRenderFunction<HostElement>: (vnode: VNode | null, container: HostElement, isSVG?: boolean) => void

Type parameters

Type declaration

    • (vnode: VNode | null, container: HostElement, isSVG?: boolean): void
    • Parameters

      • vnode: VNode | null
      • container: HostElement
      • Optional isSVG: boolean

      Returns void

ShallowReactive

ShallowReactive<T>: T & { [ShallowReactiveMarker]?: true }

Type parameters

  • T

ShallowUnwrapRef

ShallowUnwrapRef<T>: { [ K in keyof T]: T[K] extends Ref<infer V> ? V : T[K] extends Ref<infer V> | undefined ? unknown extends V ? undefined : V | undefined : T[K] }

Type parameters

  • T

Slot

Slot: (...args: any[]) => VNode[]

Type declaration

    • (...args: any[]): VNode[]
    • Parameters

      • Rest ...args: any[]

      Returns VNode[]

Slots

Slots: Readonly<InternalSlots>

StyleValue

StyleValue: string | CSSProperties | StyleValue[]

ToRef

ToRef<T>: [T] extends [Ref] ? T : Ref<T>

Type parameters

  • T

ToRefs

ToRefs<T>: { [ K in keyof T]: ToRef<T[K]> }

Type parameters

  • T = any

TransitionGroupProps

TransitionGroupProps: Omit<TransitionProps, "mode"> & { moveClass?: string; tag?: string }

UnwrapRef

UnwrapRef<T>: T extends ShallowRef<infer V> ? V : T extends Ref<infer V> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>

Type parameters

  • T

VNodeArrayChildren

VNodeArrayChildren: (VNodeArrayChildren | VNodeChildAtom)[]

VNodeChild

VNodeChild: VNodeChildAtom | VNodeArrayChildren

VNodeNormalizedChildren

VNodeNormalizedChildren: string | VNodeArrayChildren | RawSlots | null

VNodeProps

VNodeProps: { key?: string | number | symbol; onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[]; onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[]; onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[]; onVnodeMounted?: VNodeMountHook | VNodeMountHook[]; onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[]; onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[]; ref?: VNodeRef }

Type declaration

  • Optional key?: string | number | symbol
  • Optional onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[]
  • Optional onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[]
  • Optional onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[]
  • Optional onVnodeMounted?: VNodeMountHook | VNodeMountHook[]
  • Optional onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[]
  • Optional onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[]
  • Optional ref?: VNodeRef

VNodeTypes

VNodeTypes: string | VNode | Component | typeof Text | typeof Static | typeof Comment | typeof Fragment | typeof TeleportImpl | typeof SuspenseImpl

VueElementConstructor

VueElementConstructor<P>: {}

Type parameters

  • P = {}

Type declaration

    WatchCallback

    WatchCallback<V, OV>: (value: V, oldValue: OV, onInvalidate: InvalidateCbRegistrator) => any

    Type parameters

    • V = any

    • OV = any

    Type declaration

      • (value: V, oldValue: OV, onInvalidate: InvalidateCbRegistrator): any
      • Parameters

        • value: V
        • oldValue: OV
        • onInvalidate: InvalidateCbRegistrator

        Returns any

    WatchEffect

    WatchEffect: (onInvalidate: InvalidateCbRegistrator) => void

    Type declaration

      • (onInvalidate: InvalidateCbRegistrator): void
      • Parameters

        • onInvalidate: InvalidateCbRegistrator

        Returns void

    WatchSource

    WatchSource<T>: Ref<T> | ComputedRef<T> | (() => T)

    Type parameters

    • T = any

    WatchStopHandle

    WatchStopHandle: () => void

    Type declaration

      • (): void
      • Returns void

    Variables

    BaseTransition

    BaseTransition: new () => { $props: BaseTransitionProps<any> }

    Type declaration

    Comment

    Comment: unique symbol

    Fragment

    Fragment: { __isFragment: true }

    Type declaration

    • __isFragment: true

    KeepAlive

    KeepAlive: { __isKeepAlive: true }

    Type declaration

    • __isKeepAlive: true

    Static

    Static: unique symbol

    Suspense

    Suspense: { __isSuspense: true }

    Type declaration

    • __isSuspense: true

    Teleport

    Teleport: { __isTeleport: true }

    Type declaration

    • __isTeleport: true

    Text

    Text: unique symbol

    Transition

    TransitionGroup

    TransitionGroup: new () => { $props: TransitionGroupProps }

    Type declaration

    devtools

    devtools: DevtoolsHook

    ssrContextKey

    ssrContextKey: unique symbol

    vModelCheckbox

    vModelCheckbox: ModelDirective<HTMLInputElement>

    vModelDynamic

    vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>

    vModelRadio

    vModelRadio: ModelDirective<HTMLInputElement>

    vModelSelect

    vModelSelect: ModelDirective<HTMLSelectElement>

    vModelText

    vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement>

    vShow

    vShow: ObjectDirective<VShowElement>

    version

    version: string

    Functions

    callWithAsyncErrorHandling

    • callWithAsyncErrorHandling(fn: Function | Function[], instance: null | ComponentInternalInstance, type: ErrorTypes, args?: unknown[]): any[]
    • Parameters

      Returns any[]

    callWithErrorHandling

    • Parameters

      Returns any

    Const Private camelize

    • camelize(str: string): string
    • Parameters

      • str: string

      Returns string

    Const Private capitalize

    • capitalize(str: string): string
    • Parameters

      • str: string

      Returns string

    cloneVNode

    • cloneVNode<T, U>(vnode: VNode<T, U, {}>, extraProps?: null | (Data & VNodeProps), mergeRef?: boolean): VNode<T, U>
    • Type parameters

      • T

      • U

      Parameters

      • vnode: VNode<T, U, {}>
      • Optional extraProps: null | (Data & VNodeProps)
      • Optional mergeRef: boolean

      Returns VNode<T, U>

    compile

    • compile(template: string | HTMLElement, options?: CompilerOptions): RenderFunction
    • Parameters

      • template: string | HTMLElement
      • Optional options: CompilerOptions

      Returns RenderFunction

    computed

    Const createApp

    Private createBlock

    • createBlock(type: VNodeTypes | ClassComponent, props?: null | Record<string, any>, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode
    • Create a block root vnode. Takes the same exact arguments as createVNode. A block root keeps track of dynamic nodes within the block in the dynamicChildren array.

      Parameters

      • type: VNodeTypes | ClassComponent
      • Optional props: null | Record<string, any>
      • Optional children: any
      • Optional patchFlag: number
      • Optional dynamicProps: string[]

      Returns VNode

    Private createCommentVNode

    • createCommentVNode(text?: string, asBlock?: boolean): VNode
    • Parameters

      • Optional text: string
      • Optional asBlock: boolean

      Returns VNode

    Private createElementBlock

    • createElementBlock(type: string | { __isFragment: true }, props?: null | Record<string, any>, children?: any, patchFlag?: number, dynamicProps?: string[], shapeFlag?: number): VNode<RendererNode, RendererElement, {}>
    • Parameters

      • type: string | { __isFragment: true }
      • Optional props: null | Record<string, any>
      • Optional children: any
      • Optional patchFlag: number
      • Optional dynamicProps: string[]
      • Optional shapeFlag: number

      Returns VNode<RendererNode, RendererElement, {}>

    createElementVNode

    • createElementVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], shapeFlag?: number, isBlockNode?: boolean, needFullChildrenNormalization?: boolean): VNode<RendererNode, RendererElement, {}>
    • Parameters

      • type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT
      • Optional props: null | (Data & VNodeProps)
      • Optional children: unknown
      • Optional patchFlag: number
      • Optional dynamicProps: null | string[]
      • Optional shapeFlag: number
      • Optional isBlockNode: boolean
      • Optional needFullChildrenNormalization: boolean

      Returns VNode<RendererNode, RendererElement, {}>

    createHydrationRenderer

    createRenderer

    • The createRenderer function accepts two generic arguments: HostNode and HostElement, corresponding to Node and Element types in the host environment. For example, for runtime-dom, HostNode would be the DOM Node interface and HostElement would be the DOM Element interface.

      Custom renderers can pass in the platform specific types like this:

      const { render, createApp } = createRenderer<Node, Element>({
      patchProp,
      ...nodeOps
      })

      Type parameters

      Parameters

      Returns Renderer<HostElement>

    Const createSSRApp

    Private createSlots

    • createSlots(slots: Record<string, Slot>, dynamicSlots: (undefined | CompiledSlotDescriptor | CompiledSlotDescriptor[])[]): Record<string, Slot>
    • Compiler runtime helper for creating dynamic slots object

      Parameters

      • slots: Record<string, Slot>
      • dynamicSlots: (undefined | CompiledSlotDescriptor | CompiledSlotDescriptor[])[]

      Returns Record<string, Slot>

    Private createStaticVNode

    • createStaticVNode(content: string, numberOfNodes: number): VNode
    • Parameters

      • content: string
      • numberOfNodes: number

      Returns VNode

    Private createTextVNode

    • createTextVNode(text?: string, flag?: number): VNode
    • Parameters

      • Optional text: string
      • Optional flag: number

      Returns VNode

    Const createVNode

    • createVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean): VNode
    • Parameters

      • type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT
      • Optional props: null | (Data & VNodeProps)
      • Optional children: unknown
      • Optional patchFlag: number
      • Optional dynamicProps: null | string[]
      • Optional isBlockNode: boolean

      Returns VNode

    customRef

    • customRef<T>(factory: CustomRefFactory<T>): Ref<T>
    • Type parameters

      • T

      Parameters

      • factory: CustomRefFactory<T>

      Returns Ref<T>

    defineAsyncComponent

    defineComponent

    defineCustomElement

    • defineCustomElement<Props, RawBindings>(setup: (props: Readonly<Props>, ctx: SetupContext<EmitsOptions>) => RenderFunction | RawBindings): VueElementConstructor<Props>
    • defineCustomElement<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>(options: ComponentOptionsBase<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props?: undefined } & ThisType<CreateComponentPublicInstance<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Props & EmitsToProps<E>, {}, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Props & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & { styles?: string[] }): VueElementConstructor<Props>
    • defineCustomElement<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>(options: ComponentOptionsBase<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props: PropNames[] } & ThisType<CreateComponentPublicInstance<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, {}, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & { styles?: string[] }): VueElementConstructor<{ [ K in PropNames]: any }>
    • defineCustomElement<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>(options: ComponentOptionsBase<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, ExtractDefaultPropTypes<PropsOptions>> & { props: PropsOptions & ThisType<void> } & ThisType<CreateComponentPublicInstance<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, ExtractDefaultPropTypes<PropsOptions>, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & EnsureNonVoid<ExtractDefaultPropTypes<PropsOptions>>>> & { styles?: string[] }): VueElementConstructor<ExtractPropTypes<PropsOptions>>
    • defineCustomElement(options: new (...args: any[]) => ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>): VueElementConstructor
    • Type parameters

      • Props

      • RawBindings = object

      Parameters

      Returns VueElementConstructor<Props>

    • Type parameters

      Parameters

      • options: ComponentOptionsBase<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props?: undefined } & ThisType<CreateComponentPublicInstance<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Props & EmitsToProps<E>, {}, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Props & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & { styles?: string[] }

      Returns VueElementConstructor<Props>

    • Type parameters

      Parameters

      • options: ComponentOptionsBase<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props: PropNames[] } & ThisType<CreateComponentPublicInstance<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, {}, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & { styles?: string[] }

      Returns VueElementConstructor<{ [ K in PropNames]: any }>

    • Type parameters

      Parameters

      • options: ComponentOptionsBase<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, ExtractDefaultPropTypes<PropsOptions>> & { props: PropsOptions & ThisType<void> } & ThisType<CreateComponentPublicInstance<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, ExtractDefaultPropTypes<PropsOptions>, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & EnsureNonVoid<ExtractDefaultPropTypes<PropsOptions>>>> & { styles?: string[] }

      Returns VueElementConstructor<ExtractPropTypes<PropsOptions>>

    • Parameters

      Returns VueElementConstructor

    defineEmits

    • defineEmits<EE>(emitOptions: EE[]): EmitFn<EE[]>
    • defineEmits<E>(emitOptions: E): EmitFn<E>
    • defineEmits<TypeEmit>(): TypeEmit
    • Vue <script setup> compiler macro for declaring a component's emitted events. The expected argument is the same as the component emits option.

      Example runtime declaration:

      const emit = defineEmits(['change', 'update'])
      

      Example type-based declaration:

      const emit = defineEmits<{
      (event: 'change'): void
      (event: 'update', id: number): void
      }>()

      emit('change')
      emit('update', 1)

      This is only usable inside <script setup>, is compiled away in the output and should not be actually called at runtime.

      Type parameters

      • EE: string = string

      Parameters

      • emitOptions: EE[]

      Returns EmitFn<EE[]>

    • Type parameters

      Parameters

      • emitOptions: E

      Returns EmitFn<E>

    • Type parameters

      • TypeEmit

      Returns TypeEmit

    defineExpose

    • defineExpose(exposed?: Record<string, any>): void
    • Vue <script setup> compiler macro for declaring a component's exposed instance properties when it is accessed by a parent component via template refs.

      <script setup> components are closed by default - i.e. varaibles inside the <script setup> scope is not exposed to parent unless explicitly exposed via defineExpose.

      This is only usable inside <script setup>, is compiled away in the output and should not be actually called at runtime.

      Parameters

      • Optional exposed: Record<string, any>

      Returns void

    defineProps

    • defineProps<PropNames>(props: PropNames[]): Readonly<{ [ key in PropNames]?: any }>
    • defineProps<PP>(props: PP): Readonly<ExtractPropTypes<PP>>
    • defineProps<TypeProps>(): Readonly<TypeProps>
    • Vue <script setup> compiler macro for declaring component props. The expected argument is the same as the component props option.

      Example runtime declaration:

      // using Array syntax
      const props = defineProps(['foo', 'bar'])
      // using Object syntax
      const props = defineProps({
      foo: String,
      bar: {
      type: Number,
      required: true
      }
      })

      Equivalent type-based declaration:

      // will be compiled into equivalent runtime declarations
      const props = defineProps<{
      foo?: string
      bar: number
      }>()

      This is only usable inside <script setup>, is compiled away in the output and should not be actually called at runtime.

      Type parameters

      • PropNames: string = string

      Parameters

      • props: PropNames[]

      Returns Readonly<{ [ key in PropNames]?: any }>

    • Type parameters

      Parameters

      • props: PP

      Returns Readonly<ExtractPropTypes<PP>>

    • Type parameters

      • TypeProps

      Returns Readonly<TypeProps>

    Const defineSSRCustomElement

    • defineSSRCustomElement<Props, RawBindings>(setup: (props: Readonly<Props>, ctx: SetupContext<EmitsOptions>) => RenderFunction | RawBindings): VueElementConstructor<Props>
    • defineSSRCustomElement<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>(options: ComponentOptionsBase<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props?: undefined } & ThisType<CreateComponentPublicInstance<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Props & EmitsToProps<E>, {}, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Props & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & { styles?: string[] }): VueElementConstructor<Props>
    • defineSSRCustomElement<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>(options: ComponentOptionsBase<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props: PropNames[] } & ThisType<CreateComponentPublicInstance<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, {}, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & { styles?: string[] }): VueElementConstructor<{ [ K in PropNames]: any }>
    • defineSSRCustomElement<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>(options: ComponentOptionsBase<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, ExtractDefaultPropTypes<PropsOptions>> & { props: PropsOptions & ThisType<void> } & ThisType<CreateComponentPublicInstance<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, ExtractDefaultPropTypes<PropsOptions>, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & EnsureNonVoid<ExtractDefaultPropTypes<PropsOptions>>>> & { styles?: string[] }): VueElementConstructor<ExtractPropTypes<PropsOptions>>
    • defineSSRCustomElement(options: new (...args: any[]) => ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>): VueElementConstructor
    • Type parameters

      • Props

      • RawBindings = object

      Parameters

      Returns VueElementConstructor<Props>

    • Type parameters

      Parameters

      • options: ComponentOptionsBase<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props?: undefined } & ThisType<CreateComponentPublicInstance<Props & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Props & EmitsToProps<E>, {}, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Props & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & { styles?: string[] }

      Returns VueElementConstructor<Props>

    • Type parameters

      Parameters

      • options: ComponentOptionsBase<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & { props: PropNames[] } & ThisType<CreateComponentPublicInstance<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Readonly<{ [ key in string]?: any }> & EmitsToProps<E>, {}, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Readonly<{ [ key in string]?: any }> & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & {}>> & { styles?: string[] }

      Returns VueElementConstructor<{ [ K in PropNames]: any }>

    • Type parameters

      Parameters

      • options: ComponentOptionsBase<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, EE, ExtractDefaultPropTypes<PropsOptions>> & { props: PropsOptions & ThisType<void> } & ThisType<CreateComponentPublicInstance<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, RawBindings, D, C, M, Mixin, Extends, E, Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, ExtractDefaultPropTypes<PropsOptions>, false, IntersectionMixin<Mixin> & IntersectionMixin<Extends>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P"> & EnsureNonVoid<Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "B"> & EnsureNonVoid<RawBindings>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "D"> & EnsureNonVoid<D>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "C"> & EnsureNonVoid<C>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "M"> & EnsureNonVoid<M>, UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "Defaults"> & EnsureNonVoid<ExtractDefaultPropTypes<PropsOptions>>>> & { styles?: string[] }

      Returns VueElementConstructor<ExtractPropTypes<PropsOptions>>

    • Parameters

      Returns VueElementConstructor

    effect

    • Type parameters

      • T = any

      Parameters

      Returns ReactiveEffectRunner

    effectScope

    • Parameters

      • Optional detached: boolean

      Returns EffectScope

    Const getCurrentInstance

    getCurrentScope

    • Returns EffectScope | undefined

    getTransitionRawChildren

    guardReactiveProps

    • Parameters

      Returns (Data & VNodeProps) | null

    h

    • Parameters

      • type: string
      • Optional children: RawChildren

      Returns VNode

    • Parameters

      • type: string
      • Optional props: null | RawProps
      • Optional children: RawSlots | RawChildren

      Returns VNode

    • Parameters

      • type: typeof Text | typeof Comment
      • Optional children: string | number | boolean

      Returns VNode

    • Parameters

      • type: typeof Text | typeof Comment
      • Optional props: null
      • Optional children: string | number | boolean

      Returns VNode

    • Parameters

      Returns VNode

    • Parameters

      • type: { __isFragment: true }
        • __isFragment: true
      • Optional props: null | RawProps
      • Optional children: VNodeArrayChildren

      Returns VNode

    • Parameters

      • type: { __isTeleport: true }
        • __isTeleport: true
      • props: VNodeProps & { [iterator]?: undefined; __v_isVNode?: undefined } & Record<string, any> & TeleportProps
      • children: RawChildren

      Returns VNode

    • Parameters

      • type: { __isSuspense: true }
        • __isSuspense: true
      • Optional children: RawChildren

      Returns VNode

    • Parameters

      • type: { __isSuspense: true }
        • __isSuspense: true
      • Optional props: null | (VNodeProps & { [iterator]?: undefined; __v_isVNode?: undefined } & Record<string, any> & SuspenseProps)
      • Optional children: RawSlots | RawChildren

      Returns VNode

    • Type parameters

      Parameters

      • type: FunctionalComponent<P, E>
      • Optional props: (VNodeProps & { [iterator]?: undefined; __v_isVNode?: undefined } & Record<string, any> & P) | ({} extends P ? null : never)
      • Optional children: RawSlots | RawChildren

      Returns VNode

    • Parameters

      Returns VNode

    • Type parameters

      • P

      Parameters

      Returns VNode

    • Type parameters

      • P

      Parameters

      Returns VNode

    • Parameters

      Returns VNode

    • Type parameters

      • P

      Parameters

      • type: ComponentOptions<P, any, any, any, any, any, any, any>
      • Optional props: (VNodeProps & { [iterator]?: undefined; __v_isVNode?: undefined } & Record<string, any> & P) | ({} extends P ? null : never)
      • Optional children: RawSlots | RawChildren

      Returns VNode

    • Parameters

      • type: Constructor<any>
      • Optional children: RawChildren

      Returns VNode

    • Type parameters

      • P

      Parameters

      • type: Constructor<P>
      • Optional props: (VNodeProps & { [iterator]?: undefined; __v_isVNode?: undefined } & Record<string, any> & P) | ({} extends P ? null : never)
      • Optional children: RawSlots | RawChildren

      Returns VNode

    • Parameters

      Returns VNode

    • Type parameters

      • P

      Parameters

      Returns VNode

    handleError

    • Parameters

      Returns void

    Const hydrate

    • hydrate(vnode: VNode<Node, Element, {}>, container: Element | ShadowRoot): void
    • Parameters

      • vnode: VNode<Node, Element, {}>
      • container: Element | ShadowRoot

      Returns void

    initCustomFormatter

    • initCustomFormatter(): void
    • Returns void

    inject

    • inject<T>(key: string | InjectionKey<T>): T | undefined
    • inject<T>(key: string | InjectionKey<T>, defaultValue: T, treatDefaultAsFactory?: false): T
    • inject<T>(key: string | InjectionKey<T>, defaultValue: T | (() => T), treatDefaultAsFactory: true): T
    • Type parameters

      • T

      Parameters

      Returns T | undefined

    • Type parameters

      • T

      Parameters

      • key: string | InjectionKey<T>
      • defaultValue: T
      • Optional treatDefaultAsFactory: false

      Returns T

    • Type parameters

      • T

      Parameters

      • key: string | InjectionKey<T>
      • defaultValue: T | (() => T)
      • treatDefaultAsFactory: true

      Returns T

    isMemoSame

    isProxy

    • isProxy(value: unknown): boolean
    • Parameters

      • value: unknown

      Returns boolean

    isReactive

    • isReactive(value: unknown): boolean
    • Parameters

      • value: unknown

      Returns boolean

    isReadonly

    • isReadonly(value: unknown): boolean
    • Parameters

      • value: unknown

      Returns boolean

    isRef

    • isRef<T>(r: unknown): r is Ref<T>
    • Type parameters

      • T

      Parameters

      • r: unknown

      Returns r is Ref<T>

    Const isRuntimeOnly

    • isRuntimeOnly(): boolean
    • Returns boolean

    isVNode

    markRaw

    • markRaw<T>(value: T): T
    • Type parameters

      • T: object

      Parameters

      • value: T

      Returns T

    mergeProps

    • Parameters

      Returns Data

    nextTick

    • nextTick<T>(fn?: () => void): Promise<void>
    • Type parameters

      • T = void

      Parameters

      • Optional fn: () => void
          • (): void
          • Returns void

      Returns Promise<void>

    normalizeClass

    • normalizeClass(value: unknown): string
    • Parameters

      • value: unknown

      Returns string

    normalizeProps

    • normalizeProps(props: null | Record<string, any>): Record<string, any> | null
    • Parameters

      • props: null | Record<string, any>

      Returns Record<string, any> | null

    normalizeStyle

    • normalizeStyle(value: unknown): NormalizedStyle | string | undefined
    • Parameters

      • value: unknown

      Returns NormalizedStyle | string | undefined

    onActivated

    • Parameters

      Returns void

    Const onBeforeMount

    • Parameters

      Returns undefined | false | Function

    Const onBeforeUnmount

    • Parameters

      Returns undefined | false | Function

    Const onBeforeUpdate

    • Parameters

      Returns undefined | false | Function

    onDeactivated

    • Parameters

      Returns void

    onErrorCaptured

    • Type parameters

      • TError = Error

      Parameters

      Returns void

    Const onMounted

    • Parameters

      Returns undefined | false | Function

    Const onRenderTracked

    • Parameters

      Returns undefined | false | Function

    Const onRenderTriggered

    • Parameters

      Returns undefined | false | Function

    onScopeDispose

    • onScopeDispose(fn: () => void): void
    • Parameters

      • fn: () => void
          • (): void
          • Returns void

      Returns void

    Const onServerPrefetch

    • Parameters

      Returns undefined | false | Function

    Const onUnmounted

    • Parameters

      Returns undefined | false | Function

    Const onUpdated

    • Parameters

      Returns undefined | false | Function

    Private openBlock

    • openBlock(disableTracking?: boolean): void
    • Open a block. This must be called before createBlock. It cannot be part of createBlock because the children of the block are evaluated before createBlock itself is called. The generated code typically looks like this:

      function render() {
      return (openBlock(),createBlock('div', null, [...]))
      }

      disableTracking is true when creating a v-for fragment block, since a v-for fragment always diffs its children.

      Parameters

      • Optional disableTracking: boolean

      Returns void

    Private popScopeId

    • popScopeId(): void
    • Technically we no longer need this after 3.0.8 but we need to keep the same API for backwards compat w/ code generated by compilers.

      Returns void

    provide

    • provide<T>(key: string | number | InjectionKey<T>, value: T): void
    • Type parameters

      • T

      Parameters

      Returns void

    proxyRefs

    • Type parameters

      • T: object

      Parameters

      • objectWithRefs: T

      Returns ShallowUnwrapRef<T>

    Private pushScopeId

    • pushScopeId(id: null | string): void
    • Set scope id when creating hoisted vnodes.

      Parameters

      • id: null | string

      Returns void

    queuePostFlushCb

    • queuePostFlushCb(cb: SchedulerJobs): void
    • Parameters

      • cb: SchedulerJobs

      Returns void

    reactive

    • reactive<T>(target: T): UnwrapNestedRefs<T>
    • Creates a reactive copy of the original object.

      The reactive conversion is "deep"—it affects all nested properties. In the ES2015 Proxy based implementation, the returned proxy is not equal to the original object. It is recommended to work exclusively with the reactive proxy and avoid relying on the original object.

      A reactive object also automatically unwraps refs contained in it, so you don't need to use .value when accessing and mutating their value:

      const count = ref(0)
      const obj = reactive({
      count
      })

      obj.count++
      obj.count // -> 1
      count.value // -> 1

      Type parameters

      • T: object

      Parameters

      • target: T

      Returns UnwrapNestedRefs<T>

    readonly

    • Creates a readonly copy of the original object. Note the returned copy is not made reactive, but readonly can be called on an already reactive object.

      Type parameters

      • T: object

      Parameters

      • target: T

      Returns DeepReadonly<UnwrapNestedRefs<T>>

    ref

    • Type parameters

      • T: object

      Parameters

      • value: T

      Returns [T] extends [Ref] ? T : Ref<UnwrapRef<T>>

    • Type parameters

      • T

      Parameters

      • value: T

      Returns Ref<UnwrapRef<T>>

    • Type parameters

      • T = any

      Returns Ref<T | undefined>

    registerRuntimeCompiler

    • registerRuntimeCompiler(_compile: any): void
    • For runtime-dom to register the compiler. Note the exported method uses any to avoid d.ts relying on the compiler types.

      Parameters

      • _compile: any

      Returns void

    Const render

    • Parameters

      Returns void

    Private renderList

    • v-for string

      Parameters

      • source: string
      • renderItem: (value: string, index: number) => VNodeChild

      Returns VNodeChild[]

    • v-for number

      Parameters

      • source: number
      • renderItem: (value: number, index: number) => VNodeChild

      Returns VNodeChild[]

    • v-for array

      Type parameters

      • T

      Parameters

      Returns VNodeChild[]

    • v-for iterable

      Type parameters

      • T

      Parameters

      • source: Iterable<T>
      • renderItem: (value: T, index: number) => VNodeChild

      Returns VNodeChild[]

    • v-for object

      Type parameters

      • T

      Parameters

      • source: T
      • renderItem: <K>(value: T[K], key: K, index: number) => VNodeChild
          • <K>(value: T[K], key: K, index: number): VNodeChild
          • Type parameters

            • K: string | number | symbol

            Parameters

            • value: T[K]
            • key: K
            • index: number

            Returns VNodeChild

      Returns VNodeChild[]

    Private renderSlot

    • renderSlot(slots: Readonly<InternalSlots>, name: string, props?: Data, fallback?: () => VNodeArrayChildren, noSlotted?: boolean): VNode
    • Compiler runtime helper for rendering <slot/>

      Parameters

      Returns VNode

    Private resolveComponent

    • resolveComponent(name: string, maybeSelfReference?: boolean): ConcreteComponent | string
    • Parameters

      • name: string
      • Optional maybeSelfReference: boolean

      Returns ConcreteComponent | string

    Private resolveDirective

    • Parameters

      • name: string

      Returns vue.Directive | undefined

    Private resolveDynamicComponent

    • resolveDynamicComponent(component: unknown): VNodeTypes
    • Parameters

      • component: unknown

      Returns VNodeTypes

    resolveTransitionHooks

    Private setBlockTracking

    • setBlockTracking(value: number): void
    • Block tracking sometimes needs to be disabled, for example during the creation of a tree that needs to be cached by v-once. The compiler generates code like this:

      _cache[1] || (
      setBlockTracking(-1),
      _cache[1] = createVNode(...),
      setBlockTracking(1),
      _cache[1]
      )

      Parameters

      • value: number

      Returns void

    setDevtoolsHook

    • setDevtoolsHook(hook: DevtoolsHook, target: any): void
    • Parameters

      • hook: DevtoolsHook
      • target: any

      Returns void

    setTransitionHooks

    shallowReactive

    • Return a shallowly-reactive copy of the original object, where only the root level properties are reactive. It also does not auto-unwrap refs (even at the root level).

      Type parameters

      • T: object

      Parameters

      • target: T

      Returns ShallowReactive<T>

    shallowReadonly

    • shallowReadonly<T>(target: T): Readonly<{ [ K in keyof T]: UnwrapNestedRefs<T[K]> }>
    • Returns a reactive-copy of the original object, where only the root level properties are readonly, and does NOT unwrap refs nor recursively convert returned properties. This is used for creating the props proxy object for stateful components.

      Type parameters

      • T: object

      Parameters

      • target: T

      Returns Readonly<{ [ K in keyof T]: UnwrapNestedRefs<T[K]> }>

    shallowRef

    • shallowRef<T>(value: T): T extends Ref ? T : ShallowRef<T>
    • shallowRef<T>(value: T): ShallowRef<T>
    • shallowRef<T>(): ShallowRef<T | undefined>
    • Type parameters

      • T: object

      Parameters

      • value: T

      Returns T extends Ref ? T : ShallowRef<T>

    • Type parameters

      • T

      Parameters

      • value: T

      Returns ShallowRef<T>

    • Type parameters

      • T = any

      Returns ShallowRef<T | undefined>

    stop

    • stop(runner: ReactiveEffectRunner<any>): void
    • Parameters

      • runner: ReactiveEffectRunner<any>

      Returns void

    Const Private toDisplayString

    • toDisplayString(val: unknown): string
    • For converting {{ interpolation }} values to displayed strings.

      Parameters

      • val: unknown

      Returns string

    Const Private toHandlerKey

    • toHandlerKey(str: string): string
    • Parameters

      • str: string

      Returns string

    Private toHandlers

    • toHandlers(obj: Record<string, any>): Record<string, any>
    • For prefixing keys in v-on="obj" with "on"

      Parameters

      • obj: Record<string, any>

      Returns Record<string, any>

    toRaw

    • toRaw<T>(observed: T): T
    • Type parameters

      • T

      Parameters

      • observed: T

      Returns T

    toRef

    • toRef<T, K>(object: T, key: K): ToRef<T[K]>
    • Type parameters

      • T: object

      • K: string | number | symbol

      Parameters

      • object: T
      • key: K

      Returns ToRef<T[K]>

    toRefs

    • toRefs<T>(object: T): ToRefs<T>
    • Type parameters

      • T: object

      Parameters

      • object: T

      Returns ToRefs<T>

    transformVNodeArgs

    • transformVNodeArgs(transformer?: (args: [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean], instance: null | ComponentInternalInstance) => [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean]): void
    • Internal API for registering an arguments transform for createVNode used for creating stubs in the test-utils It is internal but needs to be exposed for test-utils to pick up proper typings

      Parameters

      • Optional transformer: (args: [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean], instance: null | ComponentInternalInstance) => [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean]
          • (args: [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean], instance: null | ComponentInternalInstance): [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean]
          • Parameters

            • args: [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean]
            • instance: null | ComponentInternalInstance

            Returns [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | (Data & VNodeProps), children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean]

      Returns void

    triggerRef

    • triggerRef(ref: Ref<any>): void
    • Parameters

      Returns void

    unref

    • unref<T>(ref: T | Ref<T>): T
    • Type parameters

      • T

      Parameters

      • ref: T | Ref<T>

      Returns T

    useAttrs

    • Returns SetupContext["attrs"]

    useCssModule

    • useCssModule(name?: string): Record<string, string>
    • Parameters

      • Optional name: string

      Returns Record<string, string>

    Private useCssVars

    • useCssVars(getter: (ctx: any) => Record<string, string>): void
    • Runtime helper for SFC's CSS variable injection feature.

      Parameters

      • getter: (ctx: any) => Record<string, string>
          • (ctx: any): Record<string, string>
          • Parameters

            • ctx: any

            Returns Record<string, string>

      Returns void

    Const useSSRContext

    • useSSRContext<T>(): undefined | T
    • Type parameters

      • T = Record<string, any>

      Returns undefined | T

    useSlots

    • Returns SetupContext["slots"]

    useTransitionState

    • Returns TransitionState

    warn

    • warn(msg: string, ...args: any[]): void
    • Parameters

      • msg: string
      • Rest ...args: any[]

      Returns void

    watch

    • Type parameters

      • T: (object | WatchSource<unknown>)[]

      • Immediate: Readonly<boolean> = false

      Parameters

      Returns WatchStopHandle

    • Type parameters

      • T: readonly (object | WatchSource<unknown>)[]

      • Immediate: Readonly<boolean> = false

      Parameters

      Returns WatchStopHandle

    • Type parameters

      • T

      • Immediate: Readonly<boolean> = false

      Parameters

      Returns WatchStopHandle

    • Type parameters

      • T: object

      • Immediate: Readonly<boolean> = false

      Parameters

      Returns WatchStopHandle

    watchEffect

    watchPostEffect

    watchSyncEffect

    Private withCtx

    • Wrap a slot function to memoize current rendering instance

      Parameters

      Returns Function

    withDefaults

    • withDefaults<Props, Defaults>(props: Props, defaults: Defaults): PropsWithDefaults<Props, Defaults>
    • Vue <script setup> compiler macro for providing props default values when using type-based defineProps declaration.

      Example usage:

      withDefaults(defineProps<{
      size?: number
      labels?: string[]
      }>(), {
      size: 3,
      labels: () => ['default label']
      })

      This is only usable inside <script setup>, is compiled away in the output and should not be actually called at runtime.

      Type parameters

      • Props

      • Defaults: InferDefaults<Props>

      Parameters

      • props: Props
      • defaults: Defaults

      Returns PropsWithDefaults<Props, Defaults>

    withDirectives

    Const Private withKeys

    • withKeys(fn: Function, modifiers: string[]): (event: KeyboardEvent) => any
    • Parameters

      • fn: Function
      • modifiers: string[]

      Returns (event: KeyboardEvent) => any

        • (event: KeyboardEvent): any
        • Parameters

          • event: KeyboardEvent

          Returns any

    withMemo

    • withMemo(memo: any[], render: () => VNode<any, any, {}>, cache: any[], index: number): VNode<any, any, {}>
    • Parameters

      • memo: any[]
      • render: () => VNode<any, any, {}>
          • Returns VNode<any, any, {}>

      • cache: any[]
      • index: number

      Returns VNode<any, any, {}>

    Const Private withModifiers

    • withModifiers(fn: Function, modifiers: string[]): (event: Event, ...args: unknown[]) => any
    • Parameters

      • fn: Function
      • modifiers: string[]

      Returns (event: Event, ...args: unknown[]) => any

        • (event: Event, ...args: unknown[]): any
        • Parameters

          • event: Event
          • Rest ...args: unknown[]

          Returns any

    Const Private withScopeId

    • Only for backwards compat

      Parameters

      • _id: string

      Returns (fn: Function, ctx?: null | ComponentInternalInstance, isNonScopedSlot?: boolean) => Function

        • Wrap a slot function to memoize current rendering instance

          Parameters

          Returns Function

    Generated using TypeDoc