Closed MathieuAndrade closed 2 years ago
Target code
export default class Event { public static emitter = new EventEmitter(); static emit(event: EventsType, ...args: any) { this.emitter.emit(event, ...args); } static on(event: EventsType, cb: (...args: any[]) => void) { this.emitter.on(event, cb); } }
Target code