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 c6082ad0_eee7_85d4_598f_81987df6391f["VueConstructor"] e37f4b74_7900_6246_a00b_66b43cccf6fc["vue.d.ts"] c6082ad0_eee7_85d4_598f_81987df6391f -->|defined in| e37f4b74_7900_6246_a00b_66b43cccf6fc style c6082ad0_eee7_85d4_598f_81987df6391f 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