UNPKG

@bytedance/mona-client-web

Version:

web for mona

15 lines (14 loc) 406 B
interface Listener { [key: string]: Function[]; } declare class EventEmitter { listeners: Listener; constructor(); private _refreshListeners; private _updateListeners; on(key: string, listener: (...args: any) => void): void; off(key: string, listener: (...args: any) => void): void; emit(key: string, ...args: any[]): void; clear(): void; } export default EventEmitter;