Skip to content

Commit 2f73db4

Browse files
HerringtonDarkholmehefeng
authored and
hefeng
committedJan 25, 2019
fix(types): allow variadic plugin use (vuejs#6363)
fix vuejs#6357
1 parent 3f28765 commit 2f73db4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎types/test/plugin-test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ const installer: PluginFunction<Option> = function(Vue, option) { }
1717

1818
Vue.use(plugin, new Option);
1919
Vue.use(installer, new Option);
20+
Vue.use(installer, new Option, new Option, new Option);

‎types/vue.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export declare class Vue {
9999
static component(id: string, definition?: Component | AsyncComponent): typeof Vue;
100100

101101
static use<T>(plugin: PluginObject<T> | PluginFunction<T>, options?: T): void;
102+
static use(plugin: PluginObject<any> | PluginFunction<any>, ...options: any[]): void;
102103
static mixin(mixin: typeof Vue | ComponentOptions<Vue>): void;
103104
static compile(template: string): {
104105
render(createElement: typeof Vue.prototype.$createElement): VNode;

0 commit comments

Comments
 (0)