Skip to content

Commit 6c49169

Browse files
author
Hugo Azevedo
committed
fix(ts types): Fixing $once type declaration on vue.d.ts file. $once 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
1 parent d483a49 commit 6c49169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/vue.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface Vue {
5353
options?: WatchOptions
5454
): (() => void);
5555
$on(event: string | string[], callback: Function): this;
56-
$once(event: string, callback: Function): this;
56+
$once(event: string | string[], callback: Function): this;
5757
$off(event?: string | string[], callback?: Function): this;
5858
$emit(event: string, ...args: any[]): this;
5959
$nextTick(callback: (this: this) => void): void;

0 commit comments

Comments
 (0)