(event: K, callback?: (data: IncomingEvents[K]) => any)
| 72 | } |
| 73 | |
| 74 | on<K extends keyof IncomingEvents>(event: K, callback?: (data: IncomingEvents[K]) => any): void { |
| 75 | return this.emitter.on(event as string, callback) |
| 76 | } |
| 77 | |
| 78 | emit<K extends keyof OutgoingEvents>(event: K, data: OutgoingEvents[K]): boolean { |
| 79 | return this.emitter.emit(event as string, data) |
no outgoing calls
no test coverage detected