Vue Type — vue Architecture
Architecture documentation for the Vue type/interface in vue.d.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 41eecba1_1f38_0ed6_5b49_8b4c7d330e69["Vue"] dce33347_2805_67f0_0612_2fa9417263c1["vue.d.ts"] 41eecba1_1f38_0ed6_5b49_8b4c7d330e69 -->|defined in| dce33347_2805_67f0_0612_2fa9417263c1 style 41eecba1_1f38_0ed6_5b49_8b4c7d330e69 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
types/vue.d.ts lines 49–104
export interface Vue<
Data = Record<string, any>,
Props = Record<string, any>,
Instance = never,
Options = never,
Emit = (event: string, ...args: any[]) => Vue
> {
// properties with different types in defineComponent()
readonly $data: Data
readonly $props: Props
readonly $parent: NeverFallback<Instance, Vue> | null
readonly $root: NeverFallback<Instance, Vue>
readonly $children: NeverFallback<Instance, Vue>[]
readonly $options: NeverFallback<Options, ComponentOptions<Vue>>
$emit: Emit
// Vue 2 only or shared
readonly $el: Element
readonly $refs: {
[key: string]:
| NeverFallback<Instance, Vue>
| Vue
| Element
| (NeverFallback<Instance, Vue> | Vue | Element)[]
| undefined
}
readonly $slots: { [key: string]: VNode[] | undefined }
readonly $scopedSlots: { [key: string]: NormalizedScopedSlot | undefined }
readonly $isServer: boolean
readonly $ssrContext: any
readonly $vnode: VNode
readonly $attrs: Record<string, string>
readonly $listeners: Record<string, Function | Function[]>
$mount(elementOrSelector?: Element | string, hydrating?: boolean): this
$forceUpdate(): void
$destroy(): void
$set: typeof Vue.set
$delete: typeof Vue.delete
$watch(
expOrFn: string,
callback: (this: this, n: any, o: any) => void,
options?: WatchOptions
): () => void
$watch<T>(
expOrFn: (this: this) => T,
callback: (this: this, n: T, o: T) => void,
options?: WatchOptions
): () => void
$on(event: string | string[], callback: Function): this
$once(event: string | string[], callback: Function): this
$off(event?: string | string[], callback?: Function): this
$nextTick: typeof nextTick
$createElement: CreateElement
}
Defined In
Source
Frequently Asked Questions
What is the Vue type?
Vue is a type/interface in the vue codebase, defined in types/vue.d.ts.
Where is Vue defined?
Vue is defined in types/vue.d.ts at line 49.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free