UNPKG

@tencentcloud/roomkit-electron-vue3

Version:

<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,

11 lines (10 loc) 397 B
import { EventType, Handler } from 'mitt'; declare class EventEmitter<T extends Record<EventType, unknown>> { private emitter; constructor(); on(eventName: keyof T, handler: Handler<T[keyof T]>): void; off(eventName: keyof T, handler: Handler<T[keyof T]>): void; emit(eventName: keyof T, event: T[keyof T]): void; removeAllListeners(): void; } export default EventEmitter;