fix(types): allow variadic plugin use (#6363)

fix #6357
This commit is contained in:
Herrington Darkholme 2017-09-06 04:02:38 +08:00 committed by Evan You
parent 3c216755f6
commit 38d52182bf
2 changed files with 2 additions and 0 deletions

View File

@ -17,3 +17,4 @@ const installer: PluginFunction<Option> = function(Vue, option) { }
Vue.use(plugin, new Option);
Vue.use(installer, new Option);
Vue.use(installer, new Option, new Option, new Option);

1
types/vue.d.ts vendored
View File

@ -99,6 +99,7 @@ export declare class Vue {
static component(id: string, definition?: Component | AsyncComponent): typeof Vue;
static use<T>(plugin: PluginObject<T> | PluginFunction<T>, options?: T): void;
static use(plugin: PluginObject<any> | PluginFunction<any>, ...options: any[]): void;
static mixin(mixin: typeof Vue | ComponentOptions<Vue>): void;
static compile(template: string): {
render(createElement: typeof Vue.prototype.$createElement): VNode;