Skip to content

Commit

Permalink
fix(types): allow variadic plugin use (vuejs#6363)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme authored and hefeng committed Jan 25, 2019
1 parent 3f28765 commit 2f73db4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/test/plugin-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 change: 1 addition & 0 deletions types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f73db4

Please sign in to comment.