Skip to content

Commit 68c0d33

Browse files
fix(types): avoid this in VueConstructor signature
vuejs/vue-class-component#294 (comment)
1 parent 628c1b7 commit 68c0d33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/vue.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ export interface VueConstructor<V extends Vue = Vue> {
111111
component<Props>(id: string, definition: FunctionalComponentOptions<Props, RecordPropsDefinition<Props>>): ExtendedVue<V, {}, {}, {}, Props>;
112112
component(id: string, definition?: ComponentOptions<V>): ExtendedVue<V, {}, {}, {}, {}>;
113113

114-
use<T>(plugin: PluginObject<T> | PluginFunction<T>, options?: T): this;
115-
use(plugin: PluginObject<any> | PluginFunction<any>, ...options: any[]): this;
116-
mixin(mixin: VueConstructor | ComponentOptions<Vue>): this;
114+
use<T>(plugin: PluginObject<T> | PluginFunction<T>, options?: T): VueConstructor<V>;
115+
use(plugin: PluginObject<any> | PluginFunction<any>, ...options: any[]): VueConstructor<V>;
116+
mixin(mixin: VueConstructor | ComponentOptions<Vue>): VueConstructor<V>;
117117
compile(template: string): {
118118
render(createElement: typeof Vue.prototype.$createElement): VNode;
119119
staticRenderFns: (() => VNode)[];

0 commit comments

Comments
 (0)