VueConstructor Type — vue Architecture
Architecture documentation for the VueConstructor type/interface in vue.d.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 0817c5e7_126b_6877_a199_958c29c689e5["VueConstructor"] dce33347_2805_67f0_0612_2fa9417263c1["vue.d.ts"] 0817c5e7_126b_6877_a199_958c29c689e5 -->|defined in| dce33347_2805_67f0_0612_2fa9417263c1 style 0817c5e7_126b_6877_a199_958c29c689e5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
types/vue.d.ts lines 164–444
export interface VueConstructor<V extends Vue = Vue> {
/**
* new with array props
*/
new <
Data = object,
Methods = object,
Computed = object,
PropNames extends string = never,
SetupBindings = {},
Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,
Extends extends ComponentOptionsMixin = ComponentOptionsMixin
>(
options?: ThisTypedComponentOptionsWithArrayProps<
V,
Data,
Methods,
Computed,
PropNames,
SetupBindings,
Mixin,
Extends
>
): CombinedVueInstance<
V,
Data,
Methods,
Computed,
Record<PropNames, any>,
SetupBindings,
Mixin,
Extends
>
/**
* new with object props
* ideally, the return type should just contain Props,
* not Record<keyof Props, any>. But TS requires to have Base constructors
* with the same return type.
*/
new <
Data = object,
Methods = object,
Computed = object,
Props = object,
SetupBindings = {},
Mixin extends ComponentOptionsMixin = ComponentOptionsMixin,
Extends extends ComponentOptionsMixin = ComponentOptionsMixin
>(
options?: ThisTypedComponentOptionsWithRecordProps<
V,
Data,
Methods,
Computed,
Props,
SetupBindings,
Mixin,
Extends
>
): CombinedVueInstance<
V,
Data,
Methods,
Computed,
Record<keyof Props, any>,
SetupBindings,
Mixin,
Extends
>
/**
* new with no props
*/
new (options?: ComponentOptions<V>): CombinedVueInstance<
V,
object,
object,
object,
Record<keyof object, any>,
{}
>
Defined In
Source
Frequently Asked Questions
What is the VueConstructor type?
VueConstructor is a type/interface in the vue codebase, defined in types/vue.d.ts.
Where is VueConstructor defined?
VueConstructor is defined in types/vue.d.ts at line 164.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free