Skip to content

Commit

Permalink
fix(ts types): Fixing $once type declaration on vue.d.ts file. $once …
Browse files Browse the repository at this point in the history
…should accept an event or array

Fixing $once type declaration on vue.d.ts file. $once should accept an event or array of events as
first paramete

fix vuejs#8983
  • Loading branch information
Hugo Azevedo committed Oct 26, 2018
1 parent d483a49 commit 6c49169
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 6c49169

Please sign in to comment.