Skip to content

Commit

Permalink
fix(types): fix vm.$once argument type (vuejs#8995)
Browse files Browse the repository at this point in the history
vm.$once should accept an event or array of events as first parameter.

fix vuejs#8983
  • Loading branch information
ant1m4tt3r authored and yyx990803 committed Dec 1, 2018
1 parent 7644380 commit 97086f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface Vue {
options?: WatchOptions
): (() => void);
$on(event: string | string[], callback: Function): this;
$once(event: string, callback: Function): this;
$once(event: string | string[], callback: Function): this;
$off(event?: string | string[], callback?: Function): this;
$emit(event: string, ...args: any[]): this;
$nextTick(callback: (this: this) => void): void;
Expand Down

0 comments on commit 97086f3

Please sign in to comment.