From 40d8ed6c2ea32017a9fb34671599a0653327791c Mon Sep 17 00:00:00 2001 From: hugoazevedosoares Date: Sat, 1 Dec 2018 02:41:27 -0200 Subject: [PATCH] fix(types): fix vm.$once argument type (#8995) vm.$once should accept an event or array of events as first parameter. 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 ba8e68e942e..39967963e8d 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;