mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
fix(types): fix vm.$once argument type (#8995)
vm.$once should accept an event or array of events as first parameter. fix #8983
This commit is contained in:
parent
76443803e8
commit
97086f3658
2
types/vue.d.ts
vendored
2
types/vue.d.ts
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user