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 aJean committed Aug 19, 2020
1 parent 469a5dc commit 40d8ed6
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 40d8ed6

Please sign in to comment.