You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
555 B
21 lines
555 B
import { PluginFunction } from 'vue'
|
|
|
|
export declare class VueEvents {
|
|
static install: PluginFunction<never>
|
|
|
|
emit(event: string, ...args: any[]): void
|
|
|
|
fire(event: string, ...args: any[]): void
|
|
|
|
on(event: string, callback: (eventData: any) => void): void
|
|
|
|
listen(event: string, callback: (eventData: any) => void): void
|
|
|
|
once(event: string, callback: (eventData: any) => void): void
|
|
|
|
off(event: string, callback?: (eventData: any) => void): void
|
|
|
|
unlisten (event: string, callback?: (eventData: any) => void): void
|
|
|
|
removeAll(): void
|
|
}
|
|
|