From 6c491698ccbec60a3bbb9cd90087c07bdd1f27d9 Mon Sep 17 00:00:00 2001 From: Hugo Azevedo Date: Fri, 26 Oct 2018 13:15:20 -0300 Subject: [PATCH] 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 #8983 --- types/vue.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/vue.d.ts b/types/vue.d.ts index 179fb5fe38..07a34fc9fa 100644 --- a/types/vue.d.ts +++ b/types/vue.d.ts @@ -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;